diff options
| author | Pavel Emelyanov <[email protected]> | 2007-11-01 07:36:26 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2007-11-01 07:36:26 +0000 |
| commit | 2e4afe7b35458beedba418a6e2aaf0b0ac82cc18 (patch) | |
| tree | ac98a85329391a6a541d307659b1b46ae23e495a /net/unix/af_unix.c | |
| parent | [NET]: Auto-zero the allocated sock object (diff) | |
| download | kernel-2e4afe7b35458beedba418a6e2aaf0b0ac82cc18.tar.gz kernel-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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
