* [PATCH] Fix leak in drivers/staging/at76_usb.c
@ 2008-10-18 14:53 dcg
0 siblings, 0 replies; only message in thread
From: dcg @ 2008-10-18 14:53 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel
Fix leak in at76_usb as reported in:
http://bugzilla.kernel.org/show_bug.cgi?id=11778
Reported-by: Daniel Marjamäki <danielm77@spray.se>
Signed-off-by: Diego Calleja <diegocg@gmail.com>
Index: 2.6/drivers/staging/at76_usb/at76_usb.c
===================================================================
--- 2.6.orig/drivers/staging/at76_usb/at76_usb.c 2008-10-18 16:19:38.000000000 +0200
+++ 2.6/drivers/staging/at76_usb/at76_usb.c 2008-10-18 16:20:21.000000000 +0200
@@ -2319,9 +2319,11 @@
if (!iwe)
return -ENOMEM;
- if (priv->scan_state != SCAN_COMPLETED)
+ if (priv->scan_state != SCAN_COMPLETED) {
/* scan not yet finished */
+ kfree(iwe);
return -EAGAIN;
+ }
spin_lock_irqsave(&priv->bss_list_spinlock, flags);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-18 14:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-18 14:53 [PATCH] Fix leak in drivers/staging/at76_usb.c dcg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®