summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRupesh Gujare <rgujare@ozmodevices.com>2012-04-25 23:54:58 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-25 17:30:42 -0700
commit8176df8e95df4c867457076190cfb18f2d7ff18c (patch)
treec1846c9ada8ebd56d04f042306f16255883f4a56
parent25958ce32cd57dd91b42fa414b101d127e818c84 (diff)
staging: ozwpan: Fix bug where kfree is called twice.
Signed-off-by: Rupesh Gujare <rgujare@ozmodevices.com> Signed-off-by: Chris Kelly <ckelly@ozmodevices.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/ozwpan/ozpd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/ozwpan/ozpd.c b/drivers/staging/ozwpan/ozpd.c
index 2b45d3d1800c..04cd57f2a6da 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)