linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: Remove double free of skb pointer
Date: Tue, 22 Dec 2009 15:34:25 +0200	[thread overview]
Message-ID: <508e92ca0912220534h15a04daax5d2d231db82cf2b0@mail.gmail.com> (raw)
In-Reply-To: <508e92ca0912220529q56d0ca1clef1cd5916edf4aac@mail.gmail.com>

I will resend it shortly. Sorry.

On Tue, Dec 22, 2009 at 3:29 PM, Andrei Emeltchenko
<andrei.emeltchenko.news@gmail.com> wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
>
> Trivial fix for double free of skb pointer with kfree_skb to
> make code simplier and cleaner.
>
> skb is already freed within l2cap_data_channel_iframe function.
>
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
> ---
>  net/bluetooth/l2cap.c |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
>
> diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
> index 1120cf1..9584b97 100644
> --- a/net/bluetooth/l2cap.c
> +++ b/net/bluetooth/l2cap.c
> @@ -3574,9 +3574,7 @@ static inline int l2cap_data_channel(struct
> l2cap_conn *conn, u16 cid, struct sk
>                else
>                        err = l2cap_data_channel_sframe(sk, control, skb);
>
> -               if (!err)
> -                       goto done;
> -               break;
> +               goto done;
>
>        case L2CAP_MODE_STREAMING:
>                control = get_unaligned_le16(skb->data);
> --
> 1.6.0.4
>

  reply	other threads:[~2009-12-22 13:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-22 13:29 [PATCH] Bluetooth: Remove double free of skb pointer Andrei Emeltchenko
2009-12-22 13:34 ` Andrei Emeltchenko [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-12-22 14:56 Andrei Emeltchenko
2010-01-05 22:33 ` Gustavo F. Padovan
2010-01-07  3:47 ` 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=508e92ca0912220534h15a04daax5d2d231db82cf2b0@mail.gmail.com \
    --to=andrei.emeltchenko.news@gmail.com \
    --cc=linux-bluetooth@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;
as well as URLs for NNTP newsgroup(s).