Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314639
b: refs/heads/master
c: 62566ca
h: refs/heads/master
i:
  314637: a8b3793
  314635: f2c0cce
  314631: cd03060
  314623: 6498535
v: v3
  • Loading branch information
David S. Miller committed Jun 27, 2012
1 parent 95b6d49 commit 5103cff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 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: a8edf8a690817ebfe68aa14c4bc482f62699077f
refs/heads/master: 62566ca55de3a329ef2569d7e7c9d0a326abede2
23 changes: 10 additions & 13 deletions trunk/net/bridge/netfilter/ebt_ulog.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,24 @@ static void ebt_ulog_packet(unsigned int hooknr, const struct sk_buff *skb,

if (!ub->skb) {
if (!(ub->skb = ulog_alloc_skb(size)))
goto alloc_failure;
goto unlock;
} else if (size > skb_tailroom(ub->skb)) {
ulog_send(group);

if (!(ub->skb = ulog_alloc_skb(size)))
goto alloc_failure;
goto unlock;
}

nlh = NLMSG_PUT(ub->skb, 0, ub->qlen, 0,
size - NLMSG_ALIGN(sizeof(*nlh)));
nlh = nlmsg_put(ub->skb, 0, ub->qlen, 0,
size - NLMSG_ALIGN(sizeof(*nlh)), 0);
if (!nlh) {
kfree(ub->skb);
ub->skb = NULL;
goto unlock;
}
ub->qlen++;

pm = NLMSG_DATA(nlh);
pm = nlmsg_data(nlh);

/* Fill in the ulog data */
pm->version = EBT_ULOG_VERSION;
Expand Down Expand Up @@ -209,14 +214,6 @@ static void ebt_ulog_packet(unsigned int hooknr, const struct sk_buff *skb,

unlock:
spin_unlock_bh(lock);

return;

nlmsg_failure:
pr_debug("error during NLMSG_PUT. This should "
"not happen, please report to author.\n");
alloc_failure:
goto unlock;
}

/* this function is registered with the netfilter core */
Expand Down

0 comments on commit 5103cff

Please sign in to comment.