]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - include/linux/netlink.h
[NETLINK]: Mark attribute construction exception unlikely
[mirror_ubuntu-zesty-kernel.git] / include / linux / netlink.h
index d5bfaba595c79e796be9d105b0359d02ac5a88a8..2aee0f51087646361f89d0c2bc32adb6ca27c3cf 100644 (file)
@@ -245,7 +245,7 @@ __nlmsg_put(struct sk_buff *skb, u32 pid, u32 seq, int type, int len, int flags)
 }
 
 #define NLMSG_NEW(skb, pid, seq, type, len, flags) \
-({     if (skb_tailroom(skb) < (int)NLMSG_SPACE(len)) \
+({     if (unlikely(skb_tailroom(skb) < (int)NLMSG_SPACE(len))) \
                goto nlmsg_failure; \
        __nlmsg_put(skb, pid, seq, type, len, flags); })