drivers/bluetooth/bpa10x.c: fix memleak
authorAdrian Bunk <bunk@kernel.org>
Tue, 5 Feb 2008 11:08:45 +0000 (03:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Feb 2008 11:08:45 +0000 (03:08 -0800)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/bluetooth/bpa10x.c

index 1375b53..3b28658 100644 (file)
@@ -423,6 +423,7 @@ static int bpa10x_send_frame(struct sk_buff *skb)
                break;
 
        default:
+               usb_free_urb(urb);
                return -EILSEQ;
        }