diff options
| author | Yuan Can <[email protected]> | 2022-11-24 11:33:32 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2022-11-25 00:04:21 +0000 |
| commit | 3ffa9f713c39a213a08d9ff13ab983a8aa5d8b5d (patch) | |
| tree | 347ff9e1260c577e3ae1929245a605a5d2d0c9cf /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | headers: Remove some left-over license text in include/uapi/linux/hsi/ (diff) | |
| download | kernel-3ffa9f713c39a213a08d9ff13ab983a8aa5d8b5d.tar.gz kernel-3ffa9f713c39a213a08d9ff13ab983a8aa5d8b5d.zip | |
HSI: omap_ssi_core: Fix error handling in ssi_init()
The ssi_init() returns the platform_driver_register() directly without
checking its return value, if platform_driver_register() failed, the
ssi_pdriver is not unregistered.
Fix by unregister ssi_pdriver when the last platform_driver_register()
failed.
Fixes: 0fae198988b8 ("HSI: omap_ssi: built omap_ssi and omap_ssi_port into one module")
Signed-off-by: Yuan Can <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
