Skip to content

ACPI: platform-profile: Fix possible deadlock in platform_profile_remove()

Hans de Goede linux-acpi platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1ACPI: platform-profile: Fix possible deadlock in platform_profile_remove()drivers/acpi/platform_profile.c+2 -62 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] ACPI: platform-profile: Fix possible deadlock in platform_profile_remove()

Hi Rafael,

Sorry for throwing another patch into the mix for the acpi-platform branch. I always build my local kernels with lockdep enabled and while testing an unrelated acpi_thinkpad patch I did "rmmod acpi_thinkpad" and lockdep pointed out this potential deadlock.

The fix is simple enough, although it does rely on the assumption that drivers will only call platform_profile_remove() after they have first successfully called platform_profile_register().

See the actual patch for more details.

Regards,

Hans

Hans de Goede (1):
ACPI: platform-profile: Fix possible deadlock in platform_profile_remove()

 drivers/acpi/platform_profile.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)