summaryrefslogtreecommitdiffstats
path: root/drivers/pci/proc.c
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2017-10-05 11:21:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-05 11:01:58 +0200
commit11ec7588a10d4bc2e1e385ac565d2166d375fba1 (patch)
treee1fd8702f33cd3378a27342971eb64bf82229e9a /drivers/pci/proc.c
parentcd3f1790b006d91786728c20a01da21ee277aff1 (diff)
downloadtalos-op-linux-11ec7588a10d4bc2e1e385ac565d2166d375fba1.tar.gz
talos-op-linux-11ec7588a10d4bc2e1e385ac565d2166d375fba1.zip
usb: xhci: Fix memory leak when xhci_disable_slot() returns error
If xhci_disable_slot() returns success, a disable slot command trb was queued in the command ring. The command completion handler will free the virtual device data structure associated with the slot. On the other hand, when xhci_disable_slot() returns error, the invokers should take the responsibilities to free the slot related data structure. Otherwise, memory leakage happens. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/proc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud