diff options
| author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2018-01-11 17:01:36 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-17 09:35:29 +0100 |
| commit | 3ae43090f13b7f6b6a8d4f4889727d2db4e81dd8 (patch) | |
| tree | e1002b18951603a67fb27b5ea905757de2e94072 /tools/perf/scripts/python | |
| parent | 6321e175356326f16d5d7d066c067f48483f5317 (diff) | |
xhci: Fix ring leak in failure path of xhci_alloc_virt_device()
This is a stable-only fix for the backport of commit 5d9b70f7d52e
("xhci: Don't add a virt_dev to the devs array before it's fully
allocated").
In branches that predate commit c5628a2af83a ("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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
