Re: [PATCH] mISDN: correctly handling failed allocation

From: David Miller
Date: Mon Jan 04 2016 - 17:16:12 EST


From: Insu Yun <wuninsu@xxxxxxxxx>
Date: Tue, 29 Dec 2015 16:38:46 -0500

> Since kzalloc can be failed in memory pressure,
> NULL dereference might be happened.
>
> Signed-off-by: Insu Yun <wuninsu@xxxxxxxxx>

Sorry, this is not a correct fix.

You need to propagate an error back to the callers, and
they must act upon that error.
--
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/