[IrDA]: Use alloc_skb() in IrDA TX path
As pointed out by Christoph Hellwig, dev_alloc_skb() is not intended to be used for allocating TX sk_buff. The IrDA stack was exclusively calling dev_alloc_skb() on the TX path, and this patch fixes that. Signed-off-by: Samuel Ortiz <samuel@sortiz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b826315813
commit
485fb2c998
@@ -308,7 +308,7 @@ static void irda_connect_response(struct irda_sock *self)
|
||||
|
||||
IRDA_ASSERT(self != NULL, return;);
|
||||
|
||||
skb = dev_alloc_skb(64);
|
||||
skb = alloc_skb(64, GFP_ATOMIC);
|
||||
if (skb == NULL) {
|
||||
IRDA_DEBUG(0, "%s() Unable to allocate sk_buff!\n",
|
||||
__FUNCTION__);
|
||||
|
Reference in New Issue
Block a user