From: Pavel Emelyanov Date: Thu, 1 Nov 2007 07:36:26 +0000 (-0700) Subject: [NET]: Move some core sock setup into sk_prot_alloc X-Git-Tag: v2.6.24-rc2~56^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e4afe7b35458beedba418a6e2aaf0b0ac82cc18;p=pandora-kernel.git [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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed