]> git.baikalelectronics.ru Git - kernel.git/commit
slub: fix possible NULL pointer dereference
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 2 Mar 2008 20:28:24 +0000 (23:28 +0300)
committerChristoph Lameter <clameter@sgi.com>
Mon, 3 Mar 2008 20:22:32 +0000 (12:22 -0800)
commit5cf0f067f075664fa4f4f6ef74a52578aa948fee
tree66a8e4a842d4bcd2f87e28bb2faac19e75e355b3
parent2b3b54f14ab606394bbb24ae8abd3219f12f8b60
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 <gorcunov@gmail.com>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
mm/slub.c