Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78341
b: refs/heads/master
c: f4d900a
h: refs/heads/master
i:
  78339: 8743bdf
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 28, 2008
1 parent 89c2558 commit 2082b41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a59322be07c964e916d15be3df473fb7ba20c41e
refs/heads/master: f4d900a2cae94256f56be7769734100c7054bf00
2 changes: 1 addition & 1 deletion trunk/include/linux/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); })

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/net/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2082b41

Please sign in to comment.