aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2024-07-13 23:48:13 +0000
committerGreg Kroah-Hartman <[email protected]>2024-07-31 11:41:42 +0000
commite6cd0dc91ef9d24edda553343e64eb6b542c21dd (patch)
tree171ae675a62cde5387031185999d5a64bdbb69ca /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentfsi: add missing MODULE_DESCRIPTION() macros (diff)
downloadkernel-e6cd0dc91ef9d24edda553343e64eb6b542c21dd.tar.gz
kernel-e6cd0dc91ef9d24edda553343e64eb6b542c21dd.zip
eeprom: ee1004: Fix locking issues in ee1004_probe()
Currently, the devres-based management of ee1004_bus_data has several issues when it comes to locking: 1. It does not call mutex_unlock() before returning an error. 2. When encountering an error, it deadlocks when trying to recursively lock a mutex. Fix this by moving the mutex-protected bus data initialization into a separate function so that devm_add_action_or_reset() is called without the mutex being held. Reported-by: Dan Carpenter <[email protected]> Fixes: 55d57ef6fa97 ("eeprom: ee1004: Use devres for bus data cleanup") Signed-off-by: Armin Wolf <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions