diff options
author | Karen Dombroski <karen.dombroski@marsbioimaging.com> | 2021-04-28 23:38:02 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-16 12:01:34 +0200 |
commit | fb91ab403e6ee65ef8e193198dc5f52f723e2b93 (patch) | |
tree | 828a07f19d8ccb4b767f3db8c65729ff3184eec1 /drivers/spi/spi-sh-msiof.c | |
parent | 4b8b7bc3a726268e5c15d9bafe27863a85fdfc8e (diff) | |
download | kernel_replicant_linux-fb91ab403e6ee65ef8e193198dc5f52f723e2b93.tar.gz kernel_replicant_linux-fb91ab403e6ee65ef8e193198dc5f52f723e2b93.tar.bz2 kernel_replicant_linux-fb91ab403e6ee65ef8e193198dc5f52f723e2b93.zip |
spi: spi-zynq-qspi: Fix stack violation bug
[ Upstream commit 6d5ff8e632a4f2389c331e5554cd1c2a9a28c7aa ]
When the number of bytes for the op is greater than one, the read could
run off the end of the function stack and cause a crash.
This patch restores the behaviour of safely reading out of the original
opcode location.
Signed-off-by: Karen Dombroski <karen.dombroski@marsbioimaging.com>
Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Link: https://lore.kernel.org/r/20210429053802.17650-3-amit.kumar-mahapatra@xilinx.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/spi/spi-sh-msiof.c')
0 files changed, 0 insertions, 0 deletions