aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorFabio M. De Francesco <[email protected]>2022-02-09 17:45:00 +0100
committerGreg Kroah-Hartman <[email protected]>2022-02-11 10:57:21 +0100
commitc853685d11c09da35cb49bbf8f0c001abdc0d0a9 (patch)
treea0e1b6a1864efb662fcb41097c2a9b4104eb1fe2 /scripts/gdb/linux/modules.py
parent57bc3d3ae8c14df3ceb4e17d26ddf9eeab304581 (diff)
usb: core: Unregister device on component_add() failure
Commit 8c67d06f3fd9 ("usb: Link the ports to the connectors they are attached to") creates a link to the USB Type-C connector for every new port that is added when possible. If component_add() fails, usb_hub_create_port_device() prints a warning but does not unregister the device and does not return errors to the callers. Syzbot reported a "WARNING in component_del()". Fix this issue in usb_hub_create_port_device by calling device_unregister() and returning the errors from component_add(). Fixes: 8c67d06f3fd9 ("usb: Link the ports to the connectors they are attached to") Reported-and-tested-by: [email protected] Reviewed-by: Heikki Krogerus <[email protected]> Signed-off-by: Fabio M. De Francesco <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions