fix memory leak in fixed btusb_close
authorOliver Neukum <oliver@neukum.org>
Fri, 13 Nov 2009 13:26:23 +0000 (14:26 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Nov 2009 20:57:08 +0000 (12:57 -0800)
commit7b8e2c1db0f358bc389dd1ee4633a92d80a5a6d0
tree0e24795c1f0794ed2920e9f25c754d5bce39de44
parent479c2553af9a176a0613894b9f1ec73425fd56a3
fix memory leak in fixed btusb_close

If the waker is killed before it can replay outstanding URBs, these URBs
won't be freed or will be replayed at the next open.  This patch closes
the window by explicitely discarding outstanding URBs.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/bluetooth/btusb.c