mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
apple-nvme: Release power domains when probe fails
Signed-off-by: Hector Martin <marcan@marcan.st> Reviewed-by: Neal Gompa <neal@gompa.dev> Reviewed-by: Sven Peter <sven@svenpeter.dev> Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
committed by
Keith Busch
parent
2ba8cf918f
commit
eefa72a15e
@@ -1516,6 +1516,7 @@ static struct apple_nvme *apple_nvme_alloc(struct platform_device *pdev)
|
||||
|
||||
return anv;
|
||||
put_dev:
|
||||
apple_nvme_detach_genpd(anv);
|
||||
put_device(anv->dev);
|
||||
return ERR_PTR(ret);
|
||||
}
|
||||
@@ -1549,6 +1550,7 @@ out_uninit_ctrl:
|
||||
nvme_uninit_ctrl(&anv->ctrl);
|
||||
out_put_ctrl:
|
||||
nvme_put_ctrl(&anv->ctrl);
|
||||
apple_nvme_detach_genpd(anv);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user