summaryrefslogtreecommitdiff
path: root/Documentation/hwspinlock.txt
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-10-03 10:59:57 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-09 16:02:29 +0200
commitbf7f547ecdd707e7b4fcbc467b4f9ddb29915391 (patch)
treec21940ba483db09d750220cbf08a5a8bec514566 /Documentation/hwspinlock.txt
parent6503016ea5d3945f9af1eeac23ba99f408f3af1e (diff)
usb: core: fix memory leak on port_dev_path allocation
Currently the allocation of port_dev_path from the call to kobject_get_path is not being kfree'd, causing a memory leak. Fix this by kfree'ing this at the end of the function. Add an extra error exit path to fix one of the early leaks when envp[0] fails to be allocated. Detected by CoverityScan, CID#1473771 ("Resource Leak") Fixes: 201af55da8a3 ("usb: core: added uevent for over-current") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/hwspinlock.txt')
0 files changed, 0 insertions, 0 deletions