diff options
author | Yang Yingliang <[email protected]> | 2020-11-17 14:15:00 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-11-18 12:53:45 +0100 |
commit | 5a569343e8a618dc73edebe0957eb42f2ab476bd (patch) | |
tree | 419d67d211ff1a4dff775854267bdb021ce93fe2 /scripts/gdb/linux/config.py | |
parent | 523a97aa3b756c1e0efe33ae48d450f8b0052073 (diff) |
usb/max3421: fix return error code in max3421_probe()
retval may be reassigned to 0 after max3421_of_vbus_en_pin(),
if allocate memory failed after this, max3421_probe() cann't
return ENOMEM, fix this by moving assign retval afther max3421_probe().
Fixes: 721fdc83b31b ("usb: max3421: Add devicetree support")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Yang Yingliang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions