aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorDongliang Mu <[email protected]>2022-09-22 21:48:44 +0800
committerGreg Kroah-Hartman <[email protected]>2022-09-27 10:37:09 +0200
commitbce2b0539933e485d22d6f6f076c0fcd6f185c4c (patch)
tree476a918550d318fc8ba8e904adeb8373f4fcdd6c /scripts/gdb
parent411c4597df7dcc60b7aae83761618c94a60ded3f (diff)
usb: idmouse: fix an uninit-value in idmouse_open
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: [email protected] Signed-off-by: Dongliang Mu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions