aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netlink.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-12-05 03:31:53 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 14:56:34 -0800
commitf4d900a2cae94256f56be7769734100c7054bf00 (patch)
tree3991508447452b737d11769c5e1a8799812243bb /include/net/netlink.h
parent[UDP]: Only increment counter on first peek/recv (diff)
downloadlinux-dev-f4d900a2cae94256f56be7769734100c7054bf00.tar.xz
linux-dev-f4d900a2cae94256f56be7769734100c7054bf00.zip
[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/net/netlink.h')
-rw-r--r--include/net/netlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h
index 9298218c07f9..db4b935b6c7e 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -862,7 +862,7 @@ static inline int nla_put_msecs(struct sk_buff *skb, int attrtype,
#define NLA_PUT(skb, attrtype, attrlen, data) \
do { \
- if (nla_put(skb, attrtype, attrlen, data) < 0) \
+ if (unlikely(nla_put(skb, attrtype, attrlen, data) < 0)) \
goto nla_put_failure; \
} while(0)