[PATCH 1/1] nvme-fc: avoid memory corruption caused by calling nvmf_free_options() twice

Christoph Hellwig hch at infradead.org
Tue Apr 25 10:57:44 PDT 2017


On Tue, Apr 25, 2017 at 10:54:02AM -0700, Christoph Hellwig wrote:
> On Mon, Apr 24, 2017 at 01:24:16PM -0400, Ewan D. Milne wrote:
> > From: "Ewan D. Milne" <emilne at redhat.com>
> > 
> > Do not call nvmf_free_options() from the nvme_fc_ctlr destructor if
> > nvme_fc_create_ctrl() returns an error, because nvmf_create_ctrl()
> > frees the options when an error is returned.
> > 
> > Signed-off-by: Ewan D. Milne <emilne at redhat.com>
> 
> Looks good, applied to nvme-4.12.

Actually, it doesn't apply at all.  Can you respin it?



More information about the Linux-nvme mailing list