[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPcyv4jJ4PGgYR=r6AT9AzpeRO+pQ3txUbtFFKms_ZV7JtiRvQ@mail.gmail.com>
Date: Sat, 15 Oct 2016 08:49:47 -0700
From: Dan Williams <dan.j.williams@...el.com>
To: Colin King <colin.king@...onical.com>
Cc: "linux-nvdimm@...ts.01.org" <linux-nvdimm@...ts.01.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] libnvdimm: fix dereference on null devs on error exit path
On Sat, Oct 15, 2016 at 8:32 AM, Colin King <colin.king@...onical.com> wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> 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 <colin.king@...onical.com>
Thanks, I've already applied a similar fix from Dan Carpenter.
Powered by blists - more mailing lists