diff options
| author | Nehuen Lian Bova <nehuenlian.kernel@gmail.com> | 2026-10-03 04:29:59 -0300 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-10-16 11:47:04 +0200 |
| commit | 5b66b65cfd6f697b1addb6159cbece53d20db2fc (patch) | |
| tree | 1a81960ef9657fe673f759435bf5552043d2f1e6 /tools/perf/scripts/python | |
| parent | 9932c9af185f8586e883d44ca562c12f4487c762 (diff) | |
HID: magicmouse: fix null pointer dereference in magicmouse_event()
Add a guard clause to check if 'msc' and 'msc->input' is NULL
before attempting to access its fields, preventing a general
protection fault.
Fixes: b8d56ef91cc3 ("HID: magicmouse: Apple Magic Mouse 2 USB-C support")
Reported-by: syzbot+5ad4fc9c8360b68e353f@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=5ad4fc9c8360b68e353f
Signed-off-by: Nehuen Lian Bova <nehuenlian.kernel@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
