[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:54:02 PDT 2017


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.



More information about the Linux-nvme mailing list