diff options
author | Ikjoon Jang <[email protected]> | 2019-08-30 16:39:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-09-03 15:49:12 +0200 |
commit | 9334367cda850fadc3b0ed2ff26b85e29226c1c4 (patch) | |
tree | 94eb1e2e45501e1a2e84f01fe7039fc9c2bd848e /scripts/gdb/linux/modules.py | |
parent | 8a62dff2c0734a67fefd96742839a6d4bbb2587b (diff) |
xhci: fix possible memleak on setup address fails.
Xhci re-enables a slot on transaction error in set_address using
xhci_disable_slot() + xhci_alloc_dev().
But in this case, xhci_alloc_dev() creates debugfs entries upon an
existing device without cleaning up old entries, thus memory leaks.
So this patch simply moves calling xhci_debugfs_free_dev() from
xhci_free_dev() to xhci_disable_slot().
[added "possible" to header as this is about failure codepath -Mathias]
Signed-off-by: Ikjoon Jang <[email protected]>
Signed-off-by: Mathias Nyman <[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