Bug 207125
Summary: | Possible null pointer dereference in ohci_restart() | ||
---|---|---|---|
Product: | Drivers | Reporter: | Dongyang Zhan (zhandy) |
Component: | USB | Assignee: | Default virtual assignee for Drivers/USB (drivers_usb) |
Status: | RESOLVED WILL_NOT_FIX | ||
Severity: | normal | CC: | stern, zhandy |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Linux 4.17 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Dongyang Zhan
2020-04-05 17:31:15 UTC
This is not a bug. When ohci_restart() calls ohci_init(), ohci->hcca has already been initialized to a non-NULL value. Therefore the -ENOMEM return cannot happen. (In reply to Alan Stern from comment #1) > This is not a bug. When ohci_restart() calls ohci_init(), ohci->hcca > has already been initialized to a non-NULL value. Therefore the > -ENOMEM return cannot happen. ohci->hcca will be allocated again in the ohci_init() Could it fail in that function? (In reply to Alan Stern from comment #1) > This is not a bug. When ohci_restart() calls ohci_init(), ohci->hcca > has already been initialized to a non-NULL value. Therefore the > -ENOMEM return cannot happen. I mean could you tell me where ohci->hcca is initialized before ohci_restart()? ohci->hcca is initialized when ohci_setup() calls ohci_init(). This happens long before ohci_restart() will ever get called. (In reply to Alan Stern from comment #4) > ohci->hcca is initialized when ohci_setup() calls ohci_init(). This happens > long before ohci_restart() will ever get called. Thank you so much. |