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 1375b5345a0a1466045204b80a2804672b6c4756..3b28658f5a1ff1b748bb450d3272388c71783fca 100644 (file)
@@ -423,6 +423,7 @@ static int bpa10x_send_frame(struct sk_buff *skb)
                break;
 
        default:
+               usb_free_urb(urb);
                return -EILSEQ;
        }