[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1335394498-5046-1-git-send-email-rgujare@ozmodevices.com>
Date: Wed, 25 Apr 2012 23:54:58 +0100
From: Rupesh Gujare <rgujare@...odevices.com>
To: <gregkh@...uxfoundation.org>, <devel@...verdev.osuosl.org>
CC: <linux-kernel@...r.kernel.org>,
Rupesh Gujare <rgujare@...odevices.com>,
Chris Kelly <ckelly@...odevices.com>
Subject: [PATCH] Fix bug where kfree is called twice.
Signed-off-by: Rupesh Gujare <rgujare@...odevices.com>
Signed-off-by: Chris Kelly <ckelly@...odevices.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists