diff options
author | Stanley Chang <[email protected]> | 2023-10-16 13:35:04 +0800 |
---|---|---|
committer | Chanwoo Choi <[email protected]> | 2023-10-17 17:38:57 +0900 |
commit | b3edc3463d64bc469162138a6bec6913fbeef931 (patch) | |
tree | 81854916205bc217673dc205aaffe01c05cbb6f1 /scripts/generate_rust_analyzer.py | |
parent | da886ba844791d11c9d1526fddf8607eb0198243 (diff) |
extcon: realtek: add the error handler for nvmem_cell_read
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: 8a590d7371f0 ("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]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions