diff options
| author | Niklas Schnelle <schnelle@linux.ibm.com> | 2026-09-16 17:14:11 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2026-09-22 12:21:04 +0200 |
| commit | 0261aef4b15efcee2860ab857e5cb05e9bfa47b0 (patch) | |
| tree | dcfd962f5b307b17cee2c6e58f151dc1af400a79 /tools/lib/python | |
| parent | 09b7040a1b79f4f61cdad6d9af972e045bb7c498 (diff) | |
| download | linux-next-0261aef4b15efcee2860ab857e5cb05e9bfa47b0.tar.gz linux-next-0261aef4b15efcee2860ab857e5cb05e9bfa47b0.zip | |
s390/pci: Fix missing device lock in zpci_report_status()
When pdev is non-NULL, zpci_report_status() accesses the device's driver.
To get a consistent state matching the recovery, the device lock needs to
be held. Do so by expanding the existing device lock critical section.
The lock only needs to be held when the pdev is non-NULL, so extract
the pdev-specific reporting into a helper function which also adds a
lockdep assertion to detect calls without the device lock held.
Cc: stable@vger.kernel.org
Fixes: 4ec6054e7321 ("s390/pci: Report PCI error recovery results via SCLP")
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Reviewed-by: Farhan Ali <alifm@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
