]> err.no Git - linux-2.6/commit
[NET]: Move some core sock setup into sk_prot_alloc
authorPavel Emelyanov <xemul@openvz.org>
Thu, 1 Nov 2007 07:36:26 +0000 (00:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2007 07:36:26 +0000 (00:36 -0700)
commit2e4afe7b35458beedba418a6e2aaf0b0ac82cc18
treeac98a85329391a6a541d307659b1b46ae23e495a
parent3f0666ee3039443fa7b7cf436dd16ce0dd8e3f95
[NET]: Move some core sock setup into sk_prot_alloc

The security_sk_alloc() and the module_get is a part of the
object allocations - move it in the proper place.

Note, that since we do not reset the newly allocated sock
in the sk_alloc() (memset() is removed with the previous
patch) we can safely do this.

Also fix the error path in sk_prot_alloc() - release the security
context if needed.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c