Commit 41e1d60e authored by Vivek Gautam's avatar Vivek Gautam Committed by Martin K. Petersen

scsi: ufs: qcom: Don't free resource-managed kmalloc element

Host is allocated by managed kmalloc (devm_kmalloc). The
memory allocated with this function is automatically
freed on driver detach.
So, no need to make an exclusive free call over it.
Signed-off-by: default avatarVivek Gautam <vivek.gautam@codeaurora.org>
Reviewed-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent d7fe6b66
...@@ -1268,7 +1268,6 @@ static int ufs_qcom_init(struct ufs_hba *hba) ...@@ -1268,7 +1268,6 @@ static int ufs_qcom_init(struct ufs_hba *hba)
out_unregister_bus: out_unregister_bus:
phy_exit(host->generic_phy); phy_exit(host->generic_phy);
out_host_free: out_host_free:
devm_kfree(dev, host);
ufshcd_set_variant(hba, NULL); ufshcd_set_variant(hba, NULL);
out: out:
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment