summaryrefslogtreecommitdiff
path: root/include/linux/firmware
diff options
context:
space:
mode:
authorDinghao Liu <dinghao.liu@zju.edu.cn>2021-01-19 16:10:55 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-07 15:00:11 +0200
commit3b681a1c43b6e98d7ced5dc016d2afeb5a84993a (patch)
tree3a8e54d1b3b81df492b561402d349c633d7beda6 /include/linux/firmware
parent023d13952e9b7479e60d79098a7dcc82276ea315 (diff)
extcon: Fix error handling in extcon_dev_register
[ Upstream commit d3bdd1c3140724967ca4136755538fa7c05c2b4e ] 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 <dinghao.liu@zju.edu.cn> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/firmware')
0 files changed, 0 insertions, 0 deletions