commit | e91b0031d76f966cae6d54dfaec7d609ac023141 | [log] [tgz] |
---|---|---|
author | Sean Anderson <seanga2@gmail.com> | Wed Mar 23 14:26:09 2022 -0400 |
committer | Jaehoon Chung <jh80.chung@samsung.com> | Fri Apr 22 21:19:21 2022 +0900 |
tree | d7f1764f867b41852cd57a3a6e15166faae5b3f5 | |
parent | 0c938f97efd95a769c739092fe4f71fb024ad27e [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 <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>