[lkml]   [2016]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] libnvdimm: fix dereference on null devs on error exit path
On Sat, Oct 15, 2016 at 8:32 AM, Colin King <> wrote:
> From: Colin Ian King <>
> If devs cannot be allocated then the error exit path jumps to
> a cleanup loop that iterates over a null array of devs which
> is incorrect. Fix this by jumping instead to the end of the
> function where NULL is returned.
> Signed-off-by: Colin Ian King <>

Thanks, I've already applied a similar fix from Dan Carpenter.

 \ /
  Last update: 2016-10-15 17:50    [W:0.023 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site