]> git.baikalelectronics.ru Git - kernel.git/commit
spi: omap-100k: Fix the length judgment problem
authorTian Tao <tiantao6@hisilicon.com>
Thu, 29 Apr 2021 11:20:48 +0000 (19:20 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 12:17:17 +0000 (13:17 +0100)
commitcfa1329883d15ce1f8dc68b4745280623b6beb99
tree4d05da78f9eecbe8cbe1f4ece52a85e544c2a638
parent4b57b5695ce4fdaa8fec6889b113311fc865680c
spi: omap-100k: Fix the length judgment problem

word_len should be checked in the omap1_spi100k_setup_transfer
function to see if it exceeds 32.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Link: https://lore.kernel.org/r/1619695248-39045-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap-100k.c