]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Use device_lock_assert() to verify device lock is held
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 16 Jan 2026 12:57:41 +0000 (14:57 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 6 Feb 2026 22:53:57 +0000 (16:53 -0600)
commitf06e0ad226fdb875cfd6278882ef28fe817283c5
tree13275dbcfebbca95add7d01fadb77e24cce8816f
parent183c291caa34cc1e721a571058a3f972c5b35122
PCI: Use device_lock_assert() to verify device lock is held

Multiple function comments say the function should be called with
device_lock held. Check that by calling device_lock_assert().

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260116125742.1890-3-ilpo.jarvinen@linux.intel.com
drivers/pci/pci.c