]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: check for failed dma pool allocation
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 17 Jun 2013 16:56:33 +0000 (09:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2013 17:53:54 +0000 (10:53 -0700)
commit9219b62aac8001966b25ce6e216f5e6b88e87660
tree45c4268d69df2830ee2ad4bdfcbfc7a2b57ca481
parent72a95d846a24f0a20dc3611443829ee45d1b0ec2
xhci: check for failed dma pool allocation

Fail and free the container context in case dma_pool_alloc() can't allocate
the raw context data part of it

This patch should be backported to kernels as old as 2.6.31, that
contain the commit c430e6778f613b1172b6a2fa58fc859b6dbeafc9 "USB: xhci:
Support for 64-byte contexts".

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: John Youn <johnyoun@synopsys.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c