All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] ACPI: platform-profile: Fix possible deadlock in platform_profile_remove()
@ 2021-01-25 19:09 Hans de Goede
  2021-01-25 19:09 ` [PATCH 1/1] " Hans de Goede
  0 siblings, 1 reply; 4+ messages in thread
From: Hans de Goede @ 2021-01-25 19:09 UTC (permalink / raw)
  To: Rafael J . Wysocki
  Cc: Hans de Goede, Mark Pearson, Bastien Nocera, linux-acpi,
	platform-driver-x86

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(-)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-27 17:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 19:09 [PATCH 0/1] ACPI: platform-profile: Fix possible deadlock in platform_profile_remove() Hans de Goede
2021-01-25 19:09 ` [PATCH 1/1] " Hans de Goede
2021-01-25 19:39   ` [External] " Mark RH Pearson
2021-01-27 17:49   ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.