From: Cyrill Gorcunov Date: Sun, 2 Mar 2008 20:28:24 +0000 (+0300) Subject: slub: fix possible NULL pointer dereference X-Git-Tag: v2.6.25-rc4~107^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62e5c4b4d6351707346695fd9e151b6cda85cbe1;p=pandora-kernel.git slub: fix possible NULL pointer dereference This patch fix possible NULL pointer dereference if kzalloc failed. To be able to return proper error code the function return type is changed to ssize_t (according to callees and sysfs definitions). Signed-off-by: Cyrill Gorcunov Signed-off-by: Christoph Lameter --- Reading git-diff-tree failed