Commit 91329cb0 authored by Charles Han's avatar Charles Han Committed by Chanwoo Choi
Browse files

extcon: realtek: fix NULL deref check in extcon_rtk_type_c_probe

In extcon_rtk_type_c_probe() devm_kzalloc() may return NULL but this
returned value is not checked.

Fixes: 8a590d73 ("extcon: add Realtek DHC RTD SoC Type-C driver")
Link: https://lore.kernel.org/lkml/20241025094650.253599-1-hanchunchao@inspur.com/


Signed-off-by: default avatarCharles Han <hanchunchao@inspur.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 40384c84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment