Skip to content
Commit 54a73d65 authored by Liang He's avatar Liang He Committed by Greg Kroah-Hartman
Browse files

scsi: ufs: host: Hold reference returned by of_parse_phandle()

commit a3435afb upstream.

In ufshcd_populate_vreg(), we should hold the reference returned by
of_parse_phandle() and then use it to call of_node_put() for refcount
balance.

Link: https://lore.kernel.org/r/20220719071529.1081166-1-windhl@126.com


Fixes: aa497613 ("ufs: Add regulator enable support")
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 160f7956
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