Re: [PATCH] extcon: Fix error handling in extcon_dev_register

2021-02-25 Thread Chanwoo Choi
Hi, On 21. 1. 19. 오후 5:10, Dinghao Liu wrote: When devm_kcalloc() fails, we should execute device_unregister() to unregister edev->dev from system. Fixes: 046050f6e623e ("extcon: Update the prototype of extcon_register_notifier() with enum extcon") Signed-off-by: Dinghao Liu ---

[PATCH] extcon: Fix error handling in extcon_dev_register

2021-01-19 Thread Dinghao Liu
When devm_kcalloc() fails, we should execute device_unregister() to unregister edev->dev from system. Fixes: 046050f6e623e ("extcon: Update the prototype of extcon_register_notifier() with enum extcon") Signed-off-by: Dinghao Liu --- drivers/extcon/extcon.c | 1 + 1 file changed, 1