scsi: ufs-qcom: Remove unnecessary devm_kfree
Resources allocated with devm_* are managed by device driver framework,
meaning the resources will be automatically released when the associated
device is removed. Besides, having a devm_kfree here would cause a
use-after-free scenario: after hba->host is freed up, data inside hba->host
shall still be accessed when device driver framework frees up all resources
associated with hba->dev. hba->host->rcdev, for example, shall be used by
func devm_reset_controller_release() when resources associated with
hba->dev are freed up.
Change-Id: I90bab41c34450a1c814d863b9f3653228f5eeb95
Signed-off-by:
Can Guo <cang@codeaurora.org>
Loading
Please register or sign in to comment