All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix bug where kfree is called twice.
@ 2012-04-25 22:54 Rupesh Gujare
  2012-04-26  6:38 ` Dan Carpenter
  0 siblings, 1 reply; 7+ messages in thread
From: Rupesh Gujare @ 2012-04-25 22:54 UTC (permalink / raw)
  To: gregkh, devel; +Cc: linux-kernel, Rupesh Gujare, Chris Kelly

Signed-off-by: Rupesh Gujare <rgujare@ozmodevices.com>
Signed-off-by: Chris Kelly <ckelly@ozmodevices.com>
---
 drivers/staging/ozwpan/ozpd.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/ozwpan/ozpd.c b/drivers/staging/ozwpan/ozpd.c
index 2b45d3d..04cd57f 100644
--- a/drivers/staging/ozwpan/ozpd.c
+++ b/drivers/staging/ozwpan/ozpd.c
@@ -383,8 +383,6 @@ static void oz_tx_frame_free(struct oz_pd *pd, struct oz_tx_frame *f)
 		pd->tx_pool = &f->link;
 		pd->tx_pool_count++;
 		f = 0;
-	} else {
-		kfree(f);
 	}
 	spin_unlock_bh(&pd->tx_frame_lock);
 	if (f)
-- 
1.7.5.4



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-04-26 20:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-25 22:54 [PATCH] Fix bug where kfree is called twice Rupesh Gujare
2012-04-26  6:38 ` Dan Carpenter
2012-04-26  8:44   ` Rupesh Gujare
2012-04-26 11:54     ` Dan Carpenter
2012-04-26 17:09       ` Rupesh Gujare
2012-04-26 19:48         ` Greg KH
2012-04-26 20:42           ` Rupesh Gujare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.