summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSean Anderson <[email protected]>2022-03-23 14:26:09 -0400
committerJaehoon Chung <[email protected]>2022-04-22 21:19:21 +0900
commit847990219c04fe4d4b69deefdd29a2fb2d8171d9 (patch)
treed7f1764f867b41852cd57a3a6e15166faae5b3f5 /include
parentea5583b90f9c162af6f2025718dc50ffbb6e4552 (diff)
power-domain: Fix use of uninitialized value in dev_power_domain_ctrl
If dev_count_phandle_with_args returns 0 or another error, then pd will never have been initialized by power_domain_get_by_index. Avoid comparing against pd.dev in this situation. Fixes: 3e4fcfa4bc ("power-domain: fix hang in endless loop on i.MX8") Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions