diff options
author | Karen Dombroski | 2021-04-28 23:38:02 -0600 |
---|---|---|
committer | Mark Brown | 2021-04-29 14:06:06 +0100 |
commit | 6d5ff8e632a4f2389c331e5554cd1c2a9a28c7aa (patch) | |
tree | f6ac6486e19690176af031300320271fc7054364 /drivers/spi/spi.c | |
parent | 121271f08809e5dc01d15d3e529988ac5d740af6 (diff) |
spi: spi-zynq-qspi: Fix stack violation bug
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>
Diffstat (limited to 'drivers/spi/spi.c')
0 files changed, 0 insertions, 0 deletions