linux-stable/drivers/char/pcmcia
Yu Kuai 37188559c6 char: pcmcia: error out if 'num_bytes_read' is greater than 4 in set_protocol()
Theoretically, it will cause index out of bounds error if
'num_bytes_read' is greater than 4. As we expect it(and was tested)
never to be greater than 4, error out if it happens.

Fixes: c1986ee9be ("[PATCH] New Omnikey Cardman 4000 driver")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20210521120617.138396-1-yukuai3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-27 14:45:54 +02:00
..
cm4000_cs.c char: pcmcia: error out if 'num_bytes_read' is greater than 4 in set_protocol() 2021-05-27 14:45:54 +02:00
cm4040_cs.c char: pcmcia: cm4040_cs: Remove unused variable 'uc' 2021-05-21 10:09:28 +02:00
cm4040_cs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
scr24x_cs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 18 2019-05-21 11:28:46 +02:00
synclink_cs.c pcmcia: synclink_cs: drop redundant tty-port initialisation 2021-04-07 17:22:07 +02:00