summaryrefslogtreecommitdiff
path: root/drivers/md/dm-bufio.c
diff options
context:
space:
mode:
authorCheng Ming Lin <chengminglin@mxic.com.tw>2025-07-14 11:10:23 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-24 08:56:22 +0200
commit0758f7ef402b6e31c71b75b0c4aaccac3014851b (patch)
tree59c7aada063ae33454a4a51c37abc6549f7019ea /drivers/md/dm-bufio.c
parent40f79e2bf6a4820698f2999add49e08a9d10c9b0 (diff)
downloadlinux-0758f7ef402b6e31c71b75b0c4aaccac3014851b.tar.gz
linux-0758f7ef402b6e31c71b75b0c4aaccac3014851b.tar.bz2
linux-0758f7ef402b6e31c71b75b0c4aaccac3014851b.zip
spi: Add check for 8-bit transfer with 8 IO mode support
commit 710505212e3272396394f8cf78e3ddfd05df3f22 upstream. The current SPI framework does not verify if the SPI device supports 8 IO mode when doing an 8-bit transfer. This patch adds a check to ensure that if the transfer tx_nbits or rx_nbits is 8, the SPI mode must support 8 IO. If not, an error is returned, preventing undefined behavior. Fixes: d6a711a898672 ("spi: Fix OCTAL mode support") Cc: stable@vger.kernel.org Signed-off-by: Cheng Ming Lin <chengminglin@mxic.com.tw> Link: https://patch.msgid.link/20250714031023.504752-1-linchengming884@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/dm-bufio.c')
0 files changed, 0 insertions, 0 deletions