Re: [PATCH] slub: fix possible NULL pointer dereference

From: Pekka Enberg
Date: Sun Mar 02 2008 - 15:48:51 EST


On Sun, Mar 2, 2008 at 10:28 PM, Cyrill Gorcunov <gorcunov@xxxxxxxxx> wrote:
> 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@xxxxxxxxx>

Looks good to me.

Reviewed-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/