diff options
| author | Dinghao Liu <[email protected]> | 2021-01-19 16:10:55 +0800 |
|---|---|---|
| committer | Chanwoo Choi <[email protected]> | 2021-03-15 11:09:38 +0900 |
| commit | d3bdd1c3140724967ca4136755538fa7c05c2b4e (patch) | |
| tree | 40c9ad7dc5db19f34c748212db44a9af3bef8c41 /drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c | |
| parent | c9570d4a5efd04479b3cd09c39b571eb031d94f4 (diff) | |
extcon: Fix error handling in extcon_dev_register
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 <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c')
0 files changed, 0 insertions, 0 deletions