]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: Fix an error handling path in 'nvme_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 16 Jul 2017 08:39:03 +0000 (10:39 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jul 2017 14:41:56 +0000 (08:41 -0600)
commita537a0b9ca4ec40233b9117af107c56508fa989d
treec33506f8a6ab0cbee0312f160d3a21ac6367ff64
parentb6f6b2a41477a3e62ddc72fb1dafa70d7d619c88
nvme-pci: Fix an error handling path in 'nvme_probe()'

Release resources in the correct order in order not to miss a
'put_device()' if 'nvme_dev_map()' fails.

Fixes: f4d004d786e5 ("NVMe: Don't unmap controller registers on reset")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c