lkml.org 
[lkml]   [2016]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] mISDN: correctly handling failed allocation
From
From: Insu Yun <wuninsu@gmail.com>
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@gmail.com>

Sorry, this is not a correct fix.

You need to propagate an error back to the callers, and
they must act upon that error.


\
 
 \ /
  Last update: 2016-01-04 23:41    [W:0.039 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site