diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-11-01 00:36:26 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-01 00:36:26 -0700 |
commit | 2e4afe7b35458beedba418a6e2aaf0b0ac82cc18 (patch) | |
tree | ac98a85329391a6a541d307659b1b46ae23e495a /net/x25 | |
parent | 3f0666ee3039443fa7b7cf436dd16ce0dd8e3f95 (diff) | |
download | linux-2e4afe7b35458beedba418a6e2aaf0b0ac82cc18.tar.gz linux-2e4afe7b35458beedba418a6e2aaf0b0ac82cc18.tar.bz2 linux-2e4afe7b35458beedba418a6e2aaf0b0ac82cc18.zip |
[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>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions