]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/usb/storage/uas.c
UAS: Free status URB when we can't find the SCSI tag.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 2 Dec 2011 19:55:48 +0000 (11:55 -0800)
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 22 Dec 2011 09:14:48 +0000 (10:14 +0100)
commit96c1eb9873caffc507a1951c36b43fdcf3ddeff3
tree18f6524c3a07ed30dcc760457672e10cea194d9d
parent9eb445410db99e5f5f660e97a2165a0567bd909e
UAS: Free status URB when we can't find the SCSI tag.

In the UAS status URB completion handler, we need to free the URB, no
matter what happens.  Fix a bug where we would leak the URB (and its
buffer) if we couldn't find a SCSI command that is associated with this
status phase.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
drivers/usb/storage/uas.c