]> git.baikalelectronics.ru Git - 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)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Nov 2018 07:35:15 +0000 (08:35 +0100)
commit8a4d10c2ec34a4e7d0d5bf19f4a3e91da9afe156
tree79c017288b71557b533a607da61142f0107c99cb
parent14a1621402c7110781690d7c3c8c31d7af14a2c8
nvme: Free ctrl device name on init failure

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

Fixes: 5154e1f0afa08 ("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>
drivers/nvme/host/core.c