linux-stable/drivers/soc/qcom
Bjorn Andersson c1dab7872b soc: qcom: wcnss_ctrl: Fix increment in NV upload
[ Upstream commit 90c29ed762 ]

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: ea7a1f275c ("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>
2018-05-30 07:52:35 +02:00
..
glink_ssr.c soc: qcom: GLINK SSR notifier 2017-08-02 12:43:29 -07:00
Kconfig ARM: SoC driver updates for v4.14 2017-09-10 20:40:00 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mdt_loader.c soc: qcom: mdt_loader: Use request_firmware_into_buf() 2017-08-08 17:41:23 -05:00
qcom_gsbi.c
smd-rpm.c soc: qcom: smd-rpm: Add msm8996 compatibility 2017-03-28 17:58:08 -07:00
smem.c soc: qcom: smem: Silence probe defer error 2016-08-23 15:46:32 -05:00
smem_state.c soc: qcom: Update properties for smem state referencing 2016-06-24 22:53:41 -05:00
smp2p.c
smsm.c soc: qcom: smsm: fix child-node lookup 2018-03-24 11:01:27 +01:00
spm.c
wcnss_ctrl.c soc: qcom: wcnss_ctrl: Fix increment in NV upload 2018-05-30 07:52:35 +02:00