[patch 3/7] drivers/bluetooth/bpa10x.c: fix memleak

STALE6752d

2 messages, 2 authors, 2008-02-05 · open the first message on its own page

[patch 3/7] drivers/bluetooth/bpa10x.c: fix memleak

From: akpm@linux-foundation.org
Date: 2008-02-05 07:48:14

From: Adrian Bunk <bunk@kernel.org>

This patch fixea a memleak spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/bluetooth/bpa10x.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/bluetooth/bpa10x.c~drivers-bluetooth-bpa10xc-fix-memleak drivers/bluetooth/bpa10x.c
--- a/drivers/bluetooth/bpa10x.c~drivers-bluetooth-bpa10xc-fix-memleak
+++ a/drivers/bluetooth/bpa10x.c
@@ -423,6 +423,7 @@ static int bpa10x_send_frame(struct sk_b
 		break;
 
 	default:
+		usb_free_urb(urb);
 		return -EILSEQ;
 	}
 
_

Re: [patch 3/7] drivers/bluetooth/bpa10x.c: fix memleak

From: David Miller <davem@davemloft.net>
Date: 2008-02-05 11:08:25

From: akpm@linux-foundation.org
Date: Mon, 04 Feb 2008 23:48:16 -0800
From: Adrian Bunk <bunk@kernel.org>

This patch fixea a memleak spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help