diff options
| author | Andy Shevchenko <[email protected]> | 2021-03-23 17:36:21 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-03-23 16:53:29 +0100 |
| commit | fbdbbe6d3ee502b3bdeb4f255196bb45003614be (patch) | |
| tree | 7de7a85aa28fde01ffd53912183fbb761c2c0dd8 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 91356fed6afd1c83bf0d3df1fc336d54e38f0458 (diff) | |
usb: gadget: pch_udc: Check if driver is present before calling ->setup()
Since we have a separate routine for VBUS sense, the interrupt may occur
before gadget driver is present. Hence, ->setup() call may oops the kernel:
[ 55.245843] BUG: kernel NULL pointer dereference, address: 00000010
...
[ 55.245843] EIP: pch_udc_isr.cold+0x162/0x33f
...
[ 55.245843] <IRQ>
[ 55.245843] ? pch_udc_svc_data_out+0x160/0x160
Check if driver is present before calling ->setup().
Fixes: f646cf94520e ("USB device driver of Topcliff PCH")
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions