OSDN Git Service

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>
Wed, 3 Apr 2019 04:26:27 +0000 (06:26 +0200)
commit20a09a2e8703b9ea458fd6de3c5cf563501e571a
treeced06124585f4b6456565203ee0d618f0c75b45c
parentc81b872281a12a26a945f8acc31d84544e1a222a
usb: xhci: dbc: Don't free all memory with spinlock held

commit 8867ea262196a6945c24a0fb739575af646ec0e9 upstream.

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