diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2013-01-17 10:32:16 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-11 08:47:20 -0800 |
commit | 235b62026c1f73decda124912930e322dc8ec57d (patch) | |
tree | 7b82d35c4c7339230f5989c0c515c8d263f829dd /drivers/power/isp1704_charger.c | |
parent | d018dbbf6e7e3d588b09273c38ea57bc666d474c (diff) | |
download | linux-3.10-235b62026c1f73decda124912930e322dc8ec57d.tar.gz linux-3.10-235b62026c1f73decda124912930e322dc8ec57d.tar.bz2 linux-3.10-235b62026c1f73decda124912930e322dc8ec57d.zip |
USB: XHCI: fix memory leak of URB-private data
commit 48c3375c5f69b1c2ef3d1051a0009cb9bce0ce24 upstream.
This patch (as1640) fixes a memory leak in xhci-hcd. The urb_priv
data structure isn't always deallocated in the handle_tx_event()
routine for non-control transfers. The patch adds a kfree() call so
that all paths end up freeing the memory properly.
This patch should be backported to kernels as old as 2.6.36, that
contain the commit 8e51adccd4c4b9ffcd509d7f2afce0a906139f75 "USB: xHCI:
Introduce urb_priv structure"
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Reported-and-tested-by: Martin Mokrejs <mmokrejs@fold.natur.cuni.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/power/isp1704_charger.c')
0 files changed, 0 insertions, 0 deletions