aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorAl Cooper <[email protected]>2014-09-11 13:55:49 +0300
committerGreg Kroah-Hartman <[email protected]>2014-09-11 14:23:52 -0700
commit0eda06c7c17ae48d7db69beef57f6e2b20bc3c72 (patch)
treeae5715957fb0882c90812d05dbe4f874bb5ebd1d /net/lapb/lapb_subr.c
parentc207e7c50f31113c24a9f536fcab1e8a256985d7 (diff)
usb: xhci: Fix OOPS in xhci error handling code
The xhci driver will OOPS on resume from S2/S3 if dma_alloc_coherent() is out of memory. This is a result of two things: 1. xhci_mem_cleanup() in xhci-mem.c free's xhci->lpm_command if it's not NULL, but doesn't set it to NULL after the free. 2. xhci_mem_cleanup() is called twice on resume, once for normal restart and once from xhci_mem_init() if dma_alloc_coherent() fails, resulting in a free of xhci->lpm_command that has already been freed. The fix is to set xhci->lpm_command to NULL after freeing it. Signed-off-by: Al Cooper <[email protected]> Cc: stable <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions