From: Rupesh Gujare <rgujare@ozmodevices.com>
To: <gregkh@linuxfoundation.org>, <devel@driverdev.osuosl.org>
Cc: <linux-kernel@vger.kernel.org>,
Rupesh Gujare <rgujare@ozmodevices.com>,
Chris Kelly <ckelly@ozmodevices.com>
Subject: [PATCH] Fix bug where kfree is called twice.
Date: Wed, 25 Apr 2012 23:54:58 +0100 [thread overview]
Message-ID: <1335394498-5046-1-git-send-email-rgujare@ozmodevices.com> (raw)
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
next reply other threads:[~2012-04-25 22:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-25 22:54 Rupesh Gujare [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1335394498-5046-1-git-send-email-rgujare@ozmodevices.com \
--to=rgujare@ozmodevices.com \
--cc=ckelly@ozmodevices.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®