]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:15:43 +0000 (16:15 +0200)
commita741b1bd7068ed8a750f9240d4e17c93f1b22a25
treef2b5cc0d5c10cabd057a14757dd1d6e216acf92d
parent880ec021ed3b665014b74784311cb8b5bc736854
spi: omap-100k: Fix the length judgment problem

[ Upstream commit e7a1a3abea373e41ba7dfe0fbc93cb79b6a3a529 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-omap-100k.c