NVMe: Only release requested regions
authorJohannes Thumshirn <jthumshirn@suse.de>
Tue, 10 May 2016 13:14:28 +0000 (15:14 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 9 Jun 2016 20:28:28 +0000 (14:28 -0600)
commitedb50a5403d2e2d2b2b63a8365c4378c9c300ed6
treeb35cad3dc3b2dc6d5fb41cc99fe3bd180ab8e4e6
parent1decabc1a70b97ef7412224df3dcb59d1227e3af
NVMe: Only release requested regions

The NVMe driver only requests the PCIe device's memory regions but releases
all possible regions (including eventual I/O regions). This leads to a stale
warning entry in dmesg about freeing non existent resources.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c