diff options
author | Yang Yingliang <[email protected]> | 2023-07-25 20:53:19 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-07-25 17:44:56 +0200 |
commit | da6d91ed77062960107e2eddacd932abecfd0592 (patch) | |
tree | 9e0c3eafaf6bb8340de60eb512509519bc700af7 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | a8291be6b5dd465c22af229483dbac543a91e24e (diff) |
usb: typec: qcom: fix return value check in qcom_pmic_typec_probe()
device_get_named_child_node() returns NULL, if it fails, replace
IS_ERR() with NULL pointer check.
Fixes: a4422ff22142 ("usb: typec: qcom: Add Qualcomm PMIC Type-C driver")
Signed-off-by: Yang Yingliang <[email protected]>
Acked-by: Konrad Dybcio <[email protected]>
Acked-by: Bryan O'Donoghue <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions