Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102703
b: refs/heads/master
c: 31d8519
h: refs/heads/master
i:
  102701: b284cc7
  102699: 49622af
  102695: 8294569
  102687: cb01e13
v: v3
  • Loading branch information
Pekka Enberg authored and David S. Miller committed Jun 9, 2008
1 parent fa190eb commit f794ab0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 17e6e59f0a1d7188d783c15dc3ccebd95a0840cd
refs/heads/master: 31d8519c9cf87e9d8a0cc5b9734fda02af66d7e2
10 changes: 4 additions & 6 deletions trunk/net/netfilter/nf_conntrack_extend.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ void *__nf_ct_ext_add(struct nf_conn *ct, enum nf_ct_ext_id id, gfp_t gfp)
newlen = newoff + t->len;
rcu_read_unlock();

if (newlen >= ksize(ct->ext)) {
new = kmalloc(newlen, gfp);
if (!new)
return NULL;

memcpy(new, ct->ext, ct->ext->len);
new = krealloc(ct->ext, newlen, gfp);
if (!new)
return NULL;

if (new != ct->ext) {
for (i = 0; i < NF_CT_EXT_NUM; i++) {
if (!nf_ct_ext_exist(ct, i))
continue;
Expand Down

0 comments on commit f794ab0

Please sign in to comment.