[Devel] [PATCH 0/8] Cleanup/fix the sk_alloc() call

Pavel Emelyanov xemul at openvz.org
Wed Oct 31 06:40:01 PDT 2007


The sk_alloc() function suffers from two problems:
1 (major). The error path is not clean in it - if the security
   call fails, the net namespace is not put, if the try_module_get
   fails  additionally the security context is not released;
2 (minor). The zero_it argument is misleading, as it doesn't just 
   zeroes it, but performs some extra setup. Besides this argument 
   is used only in one place - in the sk_clone().

So this set fixes these problems and performs some additional
cleanup.

Signed-off-by: Pavel Emelyanov <xemul at openvz.org>




More information about the Devel mailing list