]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/tipc/msg.c
net: tipc: Fix a sleep-in-atomic bug in tipc_msg_reverse
[mirror_ubuntu-artful-kernel.git] / net / tipc / msg.c
index 312ef7de57d7ba27c58533df9edb2f4dd61cc864..ab3087687a32446ffa3bbfaccf206028886e6945 100644 (file)
@@ -508,7 +508,7 @@ bool tipc_msg_reverse(u32 own_node,  struct sk_buff **skb, int err)
        }
 
        if (skb_cloned(_skb) &&
-           pskb_expand_head(_skb, BUF_HEADROOM, BUF_TAILROOM, GFP_KERNEL))
+           pskb_expand_head(_skb, BUF_HEADROOM, BUF_TAILROOM, GFP_ATOMIC))
                goto exit;
 
        /* Now reverse the concerned fields */