[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJdJm_O9q3YgpjTQexbLvMm8ViViu+MrmRCqPwQDDUzaxVQYUg@mail.gmail.com>
Date: Mon, 16 Dec 2013 16:35:25 -0400
From: Anderson Lizardo <anderson.lizardo@...nbossa.org>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Marcel Holtmann <marcel@...tmann.org>,
Gustavo Padovan <gustavo@...ovan.org>,
Johan Hedberg <johan.hedberg@...il.com>,
"David S. Miller" <davem@...emloft.net>,
BlueZ development <linux-bluetooth@...r.kernel.org>,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [patch] Bluetooth: fix ->alloc_skb() error checking
Hi Dan,
On Mon, Dec 16, 2013 at 4:28 PM, Dan Carpenter <dan.carpenter@...cle.com> wrote:
> @@ -2413,8 +2413,8 @@ static struct sk_buff *l2cap_create_basic_pdu(struct l2cap_chan *chan,
>
> skb = chan->ops->alloc_skb(chan, count + L2CAP_HDR_SIZE,
> msg->msg_flags & MSG_DONTWAIT);
> - if (IS_ERR(skb))
> - return skb;
> + if (skb)
> + return ERR_PTR(-ENOMEM);
It should be "!skb" above right?
>
> skb->priority = priority;
>
Best Regards,
--
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists