Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6306
b: refs/heads/master
c: 7663f18
h: refs/heads/master
v: v3
  • Loading branch information
Yasuyuki Kozakai authored and David S. Miller committed Aug 29, 2005
1 parent 2082220 commit 42b0606
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 8a61fadb3908454ccfa538aaa75eb1d22def5700
refs/heads/master: 7663f18807805f02608457af8e2f59eee5d910fd
7 changes: 4 additions & 3 deletions trunk/net/ipv4/netfilter/ip_conntrack_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ struct ip_conntrack *ip_conntrack_alloc(struct ip_conntrack_tuple *orig,
conntrack = kmem_cache_alloc(ip_conntrack_cachep, GFP_ATOMIC);
if (!conntrack) {
DEBUGP("Can't allocate conntrack.\n");
return NULL;
return ERR_PTR(-ENOMEM);
}

memset(conntrack, 0, sizeof(*conntrack));
Expand Down Expand Up @@ -696,8 +696,9 @@ init_conntrack(struct ip_conntrack_tuple *tuple,
return NULL;
}

if (!(conntrack = ip_conntrack_alloc(tuple, &repl_tuple)))
return NULL;
conntrack = ip_conntrack_alloc(tuple, &repl_tuple);
if (conntrack == NULL || IS_ERR(conntrack))
return (struct ip_conntrack_tuple_hash *)conntrack;

if (!protocol->new(conntrack, skb)) {
ip_conntrack_free(conntrack);
Expand Down

0 comments on commit 42b0606

Please sign in to comment.