aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2021-05-21 20:06:17 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-14 16:56:39 +0200
commit1e1b9cd400953888f0577cd331711528bc6f2919 (patch)
tree984a9f41afa2598280633a3c56447f75a304ae24 /drivers/firmware
parent5a766253e3053f827d454730ea9f77aba1d59621 (diff)
downloadkernel_replicant_linux-1e1b9cd400953888f0577cd331711528bc6f2919.tar.gz
kernel_replicant_linux-1e1b9cd400953888f0577cd331711528bc6f2919.tar.bz2
kernel_replicant_linux-1e1b9cd400953888f0577cd331711528bc6f2919.zip
char: pcmcia: error out if 'num_bytes_read' is greater than 4 in set_protocol()
[ Upstream commit 37188559c610f1b7eec83c8e448936c361c578de ] 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: c1986ee9bea3 ("[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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/firmware')
0 files changed, 0 insertions, 0 deletions