Skip to content

Commit e1750a3

Browse files
ptesarikVasily Gorbik
authored andcommitted
s390/pci: Log new handle in clp_disable_fh()
After disabling a function, the original handle is logged instead of the disabled handle. Link: https://lkml.kernel.org/r/[email protected] Fixes: 17cdec9 ("s390/pci: Recover handle in clp_set_pci_fn()") Reviewed-by: Pierre Morel <[email protected]> Signed-off-by: Petr Tesarik <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent a0138f5 commit e1750a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/s390/pci/pci_clp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,13 @@ int clp_enable_fh(struct zpci_dev *zdev, u8 nr_dma_as)
314314

315315
int clp_disable_fh(struct zpci_dev *zdev)
316316
{
317-
u32 fh = zdev->fh;
318317
int rc;
319318

320319
if (!zdev_enabled(zdev))
321320
return 0;
322321

323322
rc = clp_set_pci_fn(zdev, 0, CLP_SET_DISABLE_PCI_FN);
324-
zpci_dbg(3, "dis fid:%x, fh:%x, rc:%d\n", zdev->fid, fh, rc);
323+
zpci_dbg(3, "dis fid:%x, fh:%x, rc:%d\n", zdev->fid, zdev->fh, rc);
325324
return rc;
326325
}
327326

0 commit comments

Comments
 (0)