Files
linux/drivers/usb/host
Ben Hutchings 66bb6c2c44 xhci: Fix ring leak in failure path of xhci_alloc_virt_device()
This is a stable-only fix for the backport of commit 5d9b70f7d5
("xhci: Don't add a virt_dev to the devs array before it's fully
allocated").

In branches that predate commit c5628a2af8 ("xhci: remove endpoint
ring cache") there is an additional failure path in
xhci_alloc_virt_device() where ring cache allocation fails, in
which case we need to free the ring allocated for endpoint 0.

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Cc: Mathias Nyman <mathias.nyman@intel.com>
2018-01-17 09:38:52 +01:00
..
2014-11-03 15:26:15 -08:00
2013-12-03 10:34:33 -08:00
2015-04-03 19:03:18 +02:00
2013-12-03 10:34:33 -08:00
2015-04-03 19:03:18 +02:00
2017-05-25 15:44:36 +02:00
2015-04-03 19:03:17 +02:00
2017-05-25 15:44:36 +02:00
2015-01-25 21:01:13 +08:00
2017-05-25 15:44:36 +02:00
2015-06-08 14:26:22 -07:00
2013-01-24 13:42:09 -08:00
2017-12-20 10:07:16 +01:00