summaryrefslogtreecommitdiff
path: root/drivers/net/Kconfig
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2016-04-12 14:58:14 +0300
committerMark Brown <broonie@kernel.org>2016-04-13 10:12:41 +0300
commit1ff7760ff66b98ef244bf0e5e2bd5310651205ad (patch)
treefd7a3c5af84df055ec34c5de017819d20f6b0b38 /drivers/net/Kconfig
parentea1b60fb085839a9544cb3a0069992991beabb7f (diff)
downloadlinux-1ff7760ff66b98ef244bf0e5e2bd5310651205ad.tar.xz
spi: spi-ti-qspi: Handle truncated frames properly
We clamp frame_len_words to a maximum of 4096, but do not actually limit the number of words written or read through the DATA registers or the length added to spi_message::actual_length. This results in silent data corruption for commands longer than this maximum. Recalculate the length of each transfer, taking frame_len_words into account. Use this length in qspi_{read,write}_msg(), and to increment spi_message::actual_length. Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/net/Kconfig')
0 files changed, 0 insertions, 0 deletions