drivers/bluetooth/bpa10x.c: fix memleak

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Tuesday, February 5, 2008 - 1:07 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cb7cd4...
Commit:     cb7cd42930d4421780e78323f62243350ea14789
Parent:     91f5cca3d1b4341624715f6dd01ee09be9af46c4
Author:     Adrian Bunk <bunk@kernel.org>
AuthorDate: Tue Feb 5 03:08:45 2008 -0800
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Tue Feb 5 03:08:45 2008 -0800

    drivers/bluetooth/bpa10x.c: fix memleak
    
    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c
index 1375b53..3b28658 100644
--- a/drivers/bluetooth/bpa10x.c
+++ b/drivers/bluetooth/bpa10x.c
@@ -423,6 +423,7 @@ static int bpa10x_send_frame(struct sk_buff *skb)
 		break;
 
 	default:
+		usb_free_urb(urb);
 		return -EILSEQ;
 	}
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
drivers/bluetooth/bpa10x.c: fix memleak, Linux Kernel Mailing ..., (Tue Feb 5, 1:07 pm)