skbuff: Do not allow skb recycling with disabled IRQs
[linux-2.6.git] / net / core / skbuff.c
index 80a9616..941bac9 100644 (file)
@@ -493,6 +493,9 @@ int skb_recycle_check(struct sk_buff *skb, int skb_size)
 {
        struct skb_shared_info *shinfo;
 
+       if (irqs_disabled())
+               return 0;
+
        if (skb_is_nonlinear(skb) || skb->fclone != SKB_FCLONE_UNAVAILABLE)
                return 0;