]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: xhci: Fix bug memory free after failed initialization.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 4 Nov 2009 06:02:22 +0000 (22:02 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:21:29 +0000 (10:21 -0800)
commit4d10d9eb04a6fdbb9cd9579835f7006751e558d1
tree9103dab6d1241a03938bb3b4d821747284cbad0d
parentc859382e8e6c1347d0b34dc72b2c096b07113fd1
USB: xhci: Fix bug memory free after failed initialization.

commit d94c05e33d9212ee67b8d4998f984cc71df8168b upstream.

If the xHCI driver fails during the memory initialization, xhci->ir_set
may not be a valid pointer.  Check that it points to valid DMA'able memory
before writing to that address during the memory freeing process.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-mem.c