diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-02-27 16:45:25 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-30 07:52:35 +0200 |
commit | c1dab7872b32f08a97d4d2ea740153bfc75939a7 (patch) | |
tree | 92dfca828556b0c1c0304da6c067356e2e5309f7 /fs/fuse/cuse.c | |
parent | 0a3b66b55a95ab8a9e2d7a5f6a5ebe2abb1f8fba (diff) |
soc: qcom: wcnss_ctrl: Fix increment in NV upload
[ Upstream commit 90c29ed7627b6b4aeb603ee197650173c8434512 ]
hdr.len includes both the size of the header and the fragment, so using
this when stepping through the firmware causes us to skip 16 bytes every
chunk of 3072 bytes; causing only the first fragment to actually be
valid data.
Instead use fragment size steps through the firmware blob.
Fixes: ea7a1f275cf0 ("soc: qcom: Introduce WCNSS_CTRL SMD client")
Reported-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/fuse/cuse.c')
0 files changed, 0 insertions, 0 deletions