summaryrefslogtreecommitdiffstats
path: root/arch/mips/sni
diff options
context:
space:
mode:
authorDongliang Mu <mudongliangabcd@gmail.com>2022-09-22 21:48:44 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-10-26 13:19:41 +0200
commitf589b667567fde4f81d6e6c40f42b9f2224690ea (patch)
tree9091d0ae6d9fdd65b5303613c364f8b5ca69cc56 /arch/mips/sni
parent366a2b3110c69f919fb3277acc1a0bb8cd8a8dbd (diff)
downloadlinux-stable-f589b667567fde4f81d6e6c40f42b9f2224690ea.tar.gz
linux-stable-f589b667567fde4f81d6e6c40f42b9f2224690ea.tar.bz2
linux-stable-f589b667567fde4f81d6e6c40f42b9f2224690ea.zip
usb: idmouse: fix an uninit-value in idmouse_open
[ Upstream commit bce2b0539933e485d22d6f6f076c0fcd6f185c4c ] In idmouse_create_image, if any ftip_command fails, it will go to the reset label. However, this leads to the data in bulk_in_buffer[HEADER..IMGSIZE] uninitialized. And the check for valid image incurs an uninitialized dereference. Fix this by moving the check before reset label since this check only be valid if the data after bulk_in_buffer[HEADER] has concrete data. Note that this is found by KMSAN, so only kernel compilation is tested. Reported-by: syzbot+79832d33eb89fb3cd092@syzkaller.appspotmail.com Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com> Link: https://lore.kernel.org/r/20220922134847.1101921-1-dzm91@hust.edu.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/mips/sni')
0 files changed, 0 insertions, 0 deletions