Skip to content
Unverified Commit 6d5ff8e6 authored by Karen Dombroski's avatar Karen Dombroski Committed by Mark Brown
Browse files

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: default avatarKaren Dombroski <karen.dombroski@marsbioimaging.com>
Signed-off-by: default avatarAmit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Link: https://lore.kernel.org/r/20210429053802.17650-3-amit.kumar-mahapatra@xilinx.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 121271f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment