diff options
author | Liang He <windhl@126.com> | 2022-07-19 10:15:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-03 13:00:45 +0300 |
commit | 54a73d65440e8e4683306ef5c25a4525fc8b701e (patch) | |
tree | 88bc224c0a3cad7f5206dceeac3ec2288a9d3e06 /include | |
parent | 160f79561e8746d69023a1cad6c80ebaf6be81f7 (diff) | |
download | linux-54a73d65440e8e4683306ef5c25a4525fc8b701e.tar.xz |
scsi: ufs: host: Hold reference returned by of_parse_phandle()
commit a3435afba87dc6cd83f5595e7607f3c40f93ef01 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: aa4976130934 ("ufs: Add regulator enable support")
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions