Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c2825345 authored by Can Guo's avatar Can Guo
Browse files

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: default avatarCan Guo <cang@codeaurora.org>
parent 8611eb0c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment