Files
linux/drivers
Dinghao Liu 58073dc536 extcon: Fix error handling in extcon_dev_register
[ Upstream commit d3bdd1c314 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-07 14:47:43 +02:00
..
2020-09-09 19:12:21 +02:00
2021-01-19 18:26:15 +01:00
2020-12-30 11:51:26 +01:00
2021-03-04 10:26:29 +01:00
2021-03-07 12:20:44 +01:00
2021-04-07 14:47:39 +02:00
2020-02-24 08:36:48 +01:00