]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci: dbc: Don't free all memory with spinlock held
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 22 Mar 2019 15:50:16 +0000 (17:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Mar 2019 16:16:05 +0000 (17:16 +0100)
commitdb2cbf1d85d8c0c57f773bef79978a8833af8e13
tree1fd30a0cea2295ff766893a4d0c7acc986a2f1fc
parent5330b643fcbf9bd3cafed86ec0d9bf9a04d06178
usb: xhci: dbc: Don't free all memory with spinlock held

The xhci debug capability (DbC) feature did its memory cleanup with
spinlock held. dma_free_coherent() warns if called with interrupts
disabled

move the memory cleanup outside the spinlock

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgcap.c