From: Rupesh Gujare Date: Wed, 25 Apr 2012 22:54:58 +0000 (+0100) Subject: staging: ozwpan: Fix bug where kfree is called twice. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=89f21cc050d5eed8eeffee5b46297fb7a74ef9dd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: ozwpan: Fix bug where kfree is called twice. Signed-off-by: Rupesh Gujare Signed-off-by: Chris Kelly Signed-off-by: Greg Kroah-Hartman --- 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)