aboutsummaryrefslogtreecommitdiff
path: root/include/linux/input-polldev.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-03-13 13:47:52 +0100
committerMoyster <oysterized@gmail.com>2017-06-17 15:54:28 +0200
commita43a42275a11194eb2b55a08260d8503599ab381 (patch)
treebde5a9b6ac06e7cd908d0172cfbf72affec7045f /include/linux/input-polldev.h
parent92b39f43189794b439f1defd71c37aeb2baf4195 (diff)
uwb: hwa-rc: fix NULL-deref at probe
commit daf229b15907fbfdb6ee183aac8ca428cb57e361 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack endpoints. Note that the dereference happens in the start callback which is called during probe. Fixes: de520b8bd552 ("uwb: add HWA radio controller driver") Cc: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> Cc: David Vrabel <david.vrabel@csr.com> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/input-polldev.h')
0 files changed, 0 insertions, 0 deletions