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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 20 Feb 2015 00:49:34 +0000 (00:49 +0000)
commitee368a2c5ed1806a6cbdcddadac86cbb3816d2f5
treec171ebcf1368c3c787f6efa9c50db5aadfa5fffe
parent78eaa11abd10111f9e58860cfbd4ce23c81acde2
sata_dwc_460ex: fix resource leak on error path

commit 4aaa71873ddb9faf4b0c4826579e2f6d18ff9ab4 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/ata/sata_dwc_460ex.c