Skip to content
Commit 62e5c4b4 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Christoph Lameter
Browse files

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: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
parent f619cfe1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment