aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2019-09-24 06:49:04 -0300
committerMauro Carvalho Chehab <[email protected]>2019-10-07 07:51:17 -0300
commit649cd16c438f51d4cd777e71ca1f47f6e0c5e65d (patch)
tree76be8bf5e14fbc1f88f2dd98eae5df7faeac9354 /tools/perf/scripts/python/event_analyzing_sample.py
parent43be77fa6ce6907d285269bf98e654ad21a36880 (diff)
media: flexcop-usb: fix NULL-ptr deref in flexcop_usb_transfer_init()
If usb_set_interface() failed, iface->cur_altsetting will not be assigned and it will be used in flexcop_usb_transfer_init() It may lead a NULL pointer dereference. Check usb_set_interface() return value in flexcop_usb_init() and return failed to avoid using this NULL pointer. Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Sean Young <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions