linux_dsm_epyc7002/drivers/usb/core
Xenia Ragiadakou e3376d6c87 usbcore: compare and release one bos descriptor in usb_reset_and_verify_device()
In usb_reset_and_verify_device(), hub_port_init() allocates a new bos
descriptor to hold the value read by the device. The new bos descriptor
has to be compared with the old one in order to figure out if device 's
firmware has changed in which case the device has to be reenumerated.
In the original code, none of the two descriptors was deallocated leading
to memory leaks.

This patch compares the old bos descriptor with the new one to detect change
in firmware and releases the newly allocated bos descriptor to prevent memory
leak.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reported-by: Martin MOKREJS <mmokrejs@gmail.com>
Tested-by: Martin MOKREJS <mmokrejs@gmail.com>
Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-30 12:02:08 -07:00
..
buffer.c
config.c
devices.c
devio.c
driver.c USB: core: use DRIVER_ATTR_RW() 2013-08-23 15:12:14 -07:00
endpoint.c USB: core: be specific about attribute permissions 2013-08-25 15:12:03 -07:00
file.c
generic.c
hcd-pci.c
hcd.c USB: core: be specific about attribute permissions 2013-08-25 15:12:03 -07:00
hub.c usbcore: compare and release one bos descriptor in usb_reset_and_verify_device() 2013-08-30 12:02:08 -07:00
hub.h
Kconfig
Makefile
message.c
notify.c
otg_whitelist.h
port.c USB: core: be specific about attribute permissions 2013-08-25 15:12:03 -07:00
quirks.c usb: add two quirky touchscreen 2013-08-14 12:49:27 -07:00
sysfs.c USB: core: be specific about attribute permissions 2013-08-25 15:12:03 -07:00
urb.c
usb-acpi.c
usb.c
usb.h