]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI/pwrctrl: Lock device when calling device_is_bound()
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 18 May 2026 10:07:00 +0000 (12:07 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 18 May 2026 22:32:23 +0000 (17:32 -0500)
commit548f3d287d92bcbc908b02db57fb889f8a8276a0
treea2536d85c8f664ab1263b414f9c47b74bc9a1f45
parent95c4920701dfca6a8cf4986112898382fa7afc0f
PCI/pwrctrl: Lock device when calling device_is_bound()

The kerneldoc for device_is_bound() states that it must be called with
the device lock taken. Synchronize the two calls in pwrctrl core.

Fixes: b35cf3b6aa1e ("PCI/pwrctrl: Add APIs to power on/off pwrctrl devices")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260518100700.47581-1-bartosz.golaszewski@oss.qualcomm.com
drivers/pci/pwrctrl/core.c