]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nvme: Free ctrl device name on init failure
authorKeith Busch <keith.busch@intel.com>
Mon, 26 Nov 2018 23:39:47 +0000 (16:39 -0700)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:58 +0000 (14:22 -0300)
commit514bd5575efc6dd786e41681e8937e42e034119c
treecf95d88461feaf45e0cfc367d2344b4b865083ec
parent89efdd0f18b3595caf4d0b90fa83743ff06b6336
nvme: Free ctrl device name on init failure

BugLink: https://bugs.launchpad.net/bugs/1857158
[ Upstream commit d6a2b9535d1e52bea269c138614c4801469d10e1 ]

Free the kobject name that was allocated for the controller device on
failure rather than its parent.

Fixes: d22524a4782a9 ("nvme: switch controller refcounting to use struct device")
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/nvme/host/core.c