summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-apple.c
diff options
context:
space:
mode:
authorPan Zhang <zhangpan26@huawei.com>2019-12-19 03:45:30 +0100
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-12-19 10:22:25 +0100
commit306d5acbfc66e7cccb4d8f91fc857206b8df80d1 (patch)
tree5ccb6b8afec1bd35067015e426700484eb1d7d9f /drivers/hid/hid-apple.c
parentHID: wacom: Recognize new MobileStudio Pro PID (diff)
downloadlinux-306d5acbfc66e7cccb4d8f91fc857206b8df80d1.tar.xz
linux-306d5acbfc66e7cccb4d8f91fc857206b8df80d1.zip
drivers/hid/hid-multitouch.c: fix a possible null pointer access.
1002 if ((quirks & MT_QUIRK_IGNORE_DUPLICATES) && mt) { 1003 struct input_mt_slot *i_slot = &mt->slots[slotnum]; 1004 1005 if (input_mt_is_active(i_slot) && 1006 input_mt_is_used(mt, i_slot)) 1007 return -EAGAIN; 1008 } We previously assumed 'mt' could be null (see line 1002). The following situation is similar, so add a judgement. Signed-off-by: Pan Zhang <zhangpan26@huawei.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Diffstat (limited to 'drivers/hid/hid-apple.c')
0 files changed, 0 insertions, 0 deletions