mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
There are following smatch warning:
drivers/extcon/extcon-rtk-type-c.c:905 __updated_type_c_parameter_by_efuse()
error: 'buf' dereferencing possible ERR_PTR()
The nvmem_cell_read may fail to read. So, driver must handle failure cases.
Link: https://lore.kernel.org/all/[email protected]/
Fixes: 8a590d7371 ("extcon: add Realtek DHC RTD SoC Type-C driver")
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Stanley Chang <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>