sata_dwc_460ex: fix resource leak on error path
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 7 Jan 2015 13:24:19 +0000 (15:24 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 7 Jan 2015 15:33:47 +0000 (10:33 -0500)
commit4aaa71873ddb9faf4b0c4826579e2f6d18ff9ab4
tree03353168ae1c4d675b69894147ef7726550bfdad
parentc7fa056c820fef26de34d346b148943e717958a0
sata_dwc_460ex: fix resource leak on error path

DMA mapped IO should be unmapped on the error path in probe() and
unconditionally on remove().

Fixes: 62936009f35a ([libata] Add 460EX on-chip SATA driver, sata_dwc_460ex)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_dwc_460ex.c