Commit f3116d8f authored by Bart Van Assche's avatar Bart Van Assche Committed by Sagi Grimberg
Browse files

nvme-fabrics: Fix a memory leak in an nvmf_create_ctrl() error path

parent 8eadfcb1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -827,8 +827,7 @@ nvmf_create_ctrl(struct device *dev, const char *buf, size_t count)
out_unlock:
	mutex_unlock(&nvmf_transports_mutex);
out_free_opts:
	nvmf_host_put(opts->host);
	kfree(opts);
	nvmf_free_options(opts);
	return ERR_PTR(ret);
}