aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/vmlinux-gdb.py
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2021-05-17 12:04:30 +0200
committerJiri Kosina <[email protected]>2021-05-27 15:40:35 +0200
commit4b4f6cecca446abcb686c6e6c451d4f1ec1a7497 (patch)
tree43e7527141c338325a6c31c2fbfcaa0e8f34e066 /scripts/gdb/vmlinux-gdb.py
parent22db5e0003e1441cd829180cebb42f7a6b7a46b7 (diff)
HID: magicmouse: fix NULL-deref on disconnect
Commit 9d7b18668956 ("HID: magicmouse: add support for Apple Magic Trackpad 2") added a sanity check for an Apple trackpad but returned success instead of -ENODEV when the check failed. This means that the remove callback will dereference the never-initialised driver data pointer when the driver is later unbound (e.g. on USB disconnect). Reported-by: [email protected] Fixes: 9d7b18668956 ("HID: magicmouse: add support for Apple Magic Trackpad 2") Cc: [email protected] # 4.20 Cc: Claudio Mettler <[email protected]> Cc: Marek Wyborski <[email protected]> Cc: Sean O'Brien <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions