[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAECXXi6+XBq3TcVAt+yNsDCAq=Bz_i3-qm5JngfVEQcVDyOPRg@mail.gmail.com>
Date: Mon, 26 Jan 2015 12:00:08 -0500
From: Paul Clements <paul.clements@...sios.com>
To: Sudip Mukherjee <sudipm.mukherjee@...il.com>
Cc: "nbd-general@...ts.sourceforge.net"
<nbd-general@...ts.sourceforge.net>,
kernel list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] nbd: fix possible memory leak
Sudip,
On Tue, Jan 13, 2015 at 12:19 PM, Sudip Mukherjee
<sudipm.mukherjee@...il.com> wrote:
> we have already allocated memory for nbd_dev, but we were not
> releasing that memory and just returning the error value.
>
> Signed-off-by: Sudip Mukherjee <sudip@...torindia.org>
> ---
>
> Hi Paul,
> after seeing your mail about maintainers, just started to see the code.
> this patch is one way, another way can be to bring the kcalloc part below these checks.
Probably better to move the kcalloc below, rather than adding more
branches, wouldn't you agree?
Thanks,
Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists