]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f52b1b2e21d805cb41855582fba137e2b88f233
tree0e24795c1f0794ed2920e9f25c754d5bce39de44
parent05c09c2e93d8106a758597a31806f4bcc428ea78
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