NVMe: Handle ioremap failure
authorKeith Busch <keith.busch@intel.com>
Mon, 15 Jul 2013 21:02:24 +0000 (15:02 -0600)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 3 Sep 2013 20:44:25 +0000 (16:44 -0400)
commit9d713c2bfb5e1d6abb18a8b12293631f9fcdc708
treea31be5d7d9a6596a1d0f1efc6e01b7d5f560ad93
parentcd63894630ab17a192bf97427d16dbec10710a6a
NVMe: Handle ioremap failure

Decrement the number of queues required for doorbell remapping until
the memory is successfully mapped for that size.

Additional checks are done so that we don't call free_irq if it has
already been freed.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c