Skip to contentSkip to conversation

usb: gadget: function: f_rndis:use dev_kfree_skb_irq instead of dev_kfree_skb

DISCUSSION Greg KH 1 participant 1 message Dec 22, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Greg KH

author
#1 lore raw
Quoted 3 lines · lpc.li

We can't use kfree_skb in irq disable context, because spin_lock_irqsave make sure we are always in irq disable context, use dev_kfree_skb_irq instead of kfree_skb is better than dev_kfree_skb_any.

Ok, but your patch uses:

Quoted 2 lines

- dev_kfree_skb(skb);
+ dev_kfree_skb_any(skb);

the _any call, not _irq, did you test this?

thanks,

greg k-h