public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomas Winkler <tomas.winkler@intel.com>
To: stable@kernel.org, marcel@holtmann.org
Cc: linux-bluetooth@vger.kernel.org, Sergio Luis <sergio@larces.uece.br>
Subject: [PATCH 1/2] btsdio: free sk_buff with kfree_skb
Date: Sat, 14 Feb 2009 13:02:05 +0200	[thread overview]
Message-ID: <1234609326-583-2-git-send-email-tomas.winkler@intel.com> (raw)
In-Reply-To: <1234609326-583-1-git-send-email-tomas.winkler@intel.com>

From: Sergio Luis <sergio@larces.uece.br>

free sk_buff with kfree_skb, instead of kree

Signed-off-by: Sergio Luis <sergio@larces.uece.br>
Signed-off-by: David S. Miller <davem@davemloft.net>
---
 drivers/bluetooth/btsdio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c
index 58630cc..cda6c7c 100644
--- a/drivers/bluetooth/btsdio.c
+++ b/drivers/bluetooth/btsdio.c
@@ -152,7 +152,7 @@ static int btsdio_rx_packet(struct btsdio_data *data)
 
 	err = sdio_readsb(data->func, skb->data, REG_RDAT, len - 4);
 	if (err < 0) {
-		kfree(skb);
+		kfree_skb(skb);
 		return err;
 	}
 
-- 
1.6.0.6

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

  reply	other threads:[~2009-02-14 11:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-14 11:02 [PATCH 0/2] btsdio fixes on error path Tomas Winkler
2009-02-14 11:02 ` Tomas Winkler [this message]
2009-02-14 11:02   ` [PATCH 2/2] Bluetooth: Fix TX error path in btsdio driver Tomas Winkler
  -- strict thread matches above, loose matches on Subject: below --
2008-10-26  7:16 [patch 1/2] btsdio: free sk_buff with kfree_skb Sergio Luis
2008-10-27  6:09 ` David Miller
2008-10-27  8:37   ` Marcel Holtmann

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=1234609326-583-2-git-send-email-tomas.winkler@intel.com \
    --to=tomas.winkler@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=sergio@larces.uece.br \
    --cc=stable@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