linux-stable/drivers/soc/qcom
Bjorn Andersson 3aa06676c1 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:50:47 +02:00
..
Kconfig
Makefile
qcom_gsbi.c
smd-rpm.c
smd.c soc: qcom: smd: Reset rx tail rather than tx 2016-09-01 14:19:50 -05:00
smem.c
smem_state.c
smp2p.c
smsm.c
spm.c
wcnss_ctrl.c soc: qcom: wcnss_ctrl: Fix increment in NV upload 2018-05-30 07:50:47 +02:00