Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337
b: refs/heads/master
c: 88a6685
h: refs/heads/master
i:
  335: 115ea91
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Apr 20, 2005
1 parent 9d7b182 commit 1b7a544
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 9c2b3328f74800bb370d08bb3a4255d5fe833e94
refs/heads/master: 88a66858253c57334a519a77187234867bc8605c
5 changes: 4 additions & 1 deletion trunk/net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,10 @@ struct sock *sk_alloc(int family, int priority, struct proto *prot, int zero_it)
}

if (security_sk_alloc(sk, family, priority)) {
kmem_cache_free(slab, sk);
if (slab != NULL)
kmem_cache_free(slab, sk);
else
kfree(sk);
sk = NULL;
} else
__module_get(prot->owner);
Expand Down

0 comments on commit 1b7a544

Please sign in to comment.