diff options
author | Patrick McHardy <kaber@trash.net> | 2007-12-05 03:31:53 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:56:34 -0800 |
commit | f4d900a2cae94256f56be7769734100c7054bf00 (patch) | |
tree | 3991508447452b737d11769c5e1a8799812243bb /include/linux | |
parent | a59322be07c964e916d15be3df473fb7ba20c41e (diff) | |
download | op-kernel-dev-f4d900a2cae94256f56be7769734100c7054bf00.zip op-kernel-dev-f4d900a2cae94256f56be7769734100c7054bf00.tar.gz |
[NETLINK]: Mark attribute construction exception unlikely
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index d5bfaba..2aee0f5 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h @@ -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); }) |