projects/linux·commit 89f21cc0

staging: ozwpan: Fix bug where kfree is called twice.

89f21cc0 · Rupesh Gujare <[email protected]> · 2012-04-25 23:54:58 +01:00

Signed-off-by: Rupesh Gujare <[email protected]>
Signed-off-by: Chris Kelly <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Commit
89f21cc050d5eed8eeffee5b46297fb7a74ef9dd
Parents
dc890df0

Changes

1 files changed · +0 −2

FileStatusAddDelContent
drivers/staging/ozwpan/ozpd.cmodified+0−2View file

drivers/staging/ozwpan/ozpd.c

View file
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)