WSL2-Linux-Kernel/drivers/extcon
Dinghao Liu d3bdd1c314 extcon: Fix error handling in extcon_dev_register
When devm_kcalloc() fails, we should execute device_unregister()
to unregister edev->dev from system.

Fixes: 046050f6e6 ("extcon: Update the prototype of extcon_register_notifier() with enum extcon")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2021-03-15 11:09:38 +09:00
..
Kconfig
Makefile
devres.c
extcon-adc-jack.c
extcon-arizona.c
extcon-axp288.c
extcon-fsa9480.c
extcon-gpio.c
extcon-intel-cht-wc.c
extcon-intel-int3496.c
extcon-intel-mrfld.c
extcon-intel.h
extcon-max3355.c
extcon-max8997.c
extcon-max14577.c
extcon-max77693.c extcon: max77693: Fix modalias string 2020-12-11 17:18:10 +09:00
extcon-max77843.c
extcon-palmas.c
extcon-ptn5150.c
extcon-qcom-spmi-misc.c
extcon-rt8973a.c
extcon-rt8973a.h
extcon-sm5502.c
extcon-sm5502.h
extcon-usb-gpio.c
extcon-usbc-cros-ec.c
extcon-usbc-tusb320.c
extcon.c extcon: Fix error handling in extcon_dev_register 2021-03-15 11:09:38 +09:00
extcon.h