pata_arasan_cf: fix ata_host_activate() failure handling
Subsystems (2)
PATCH v2 1/1 pata_arasan_cf: fix ata_host_activate() failure handling
Add missing cf_exit() and clk_put() calls to ata_host_activate() failure path.
Cc Viresh Kumar <[email protected]>
Cc Shiraz Hashim <[email protected]>
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
---
v2:
- re-order code and then drop redundant goto statement
drivers/ata/pata_arasan_cf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/ata/pata_arasan_cf.c +5 -2
@@ -898,9 +898,12 @@ static int arasan_cf_probe(struct platfocf_card_detect (acdev,0 ); -return ata_host_activate (host, acdev->irq, irq_handler,0 , - &arasan_cf_sht); + ret =ata_host_activate (host, acdev->irq, irq_handler,0 , + &arasan_cf_sht); +if (!ret) +return 0 ; +cf_exit (acdev); free_clk:clk_put (acdev->clk);return ret;
Quoted 6 lines · Bartlomiej Zolnierkiewicz
Add missing
cf_exit()andclk_put()calls toata_host_activate()failure path.Cc Viresh Kumar <[email protected]>Cc Shiraz Hashim <[email protected]>Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
Quoted 6 lines
---
v2:
- re-order code and then drop redundant goto statementdrivers/ata/pata_arasan_cf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Acked-by Viresh Kumar <[email protected]>
Tejun Heo
AppliedQuoted 6 lines · Bartlomiej Zolnierkiewicz
Add missing
cf_exit()andclk_put()calls toata_host_activate()failure path.Cc Viresh Kumar <[email protected]>Cc Shiraz Hashim <[email protected]>Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
Applied to libata/for-3.15-fixes.
Thanks.
Signature · 1 line
tejun