diff options
author | Vivek Gautam <vivek.gautam@codeaurora.org> | 2016-11-08 15:37:51 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-11-08 18:05:45 -0500 |
commit | 41e1d60ea50a97fe1c3f8075a13761ddc17dd45a (patch) | |
tree | d25dc2d893f80e34ede92ceec7d29ec2c0c0ec65 | |
parent | d7fe6b661abc2d034a0ad7d582a630f347d56a7b (diff) |
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: Vivek Gautam <vivek.gautam@codeaurora.org>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/ufs/ufs-qcom.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 31df7838f790..804f4e70c771 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -1268,7 +1268,6 @@ out_disable_phy: out_unregister_bus: phy_exit(host->generic_phy); out_host_free: - devm_kfree(dev, host); ufshcd_set_variant(hba, NULL); out: return err; |