]> www.infradead.org Git - users/sagi/blktests.git/commit
common/rc: fix _get_pci_dev_from_blkdev
authorOmar Sandoval <osandov@fb.com>
Tue, 24 Oct 2017 21:01:29 +0000 (14:01 -0700)
committerOmar Sandoval <osandov@fb.com>
Tue, 24 Oct 2017 21:05:36 +0000 (14:05 -0700)
commitc4033bf83812956d0934bd0e7064d76c6af5c40f
treee94362c0370f974d6136cd6b02c29b1e21d544bd
parent282178ef1442c2997395e382c39ebb782180bf7f
common/rc: fix _get_pci_dev_from_blkdev

The device path might include multiple PCI devices, like the port.
Always get the last one.

Fixes #5.

Signed-off-by: Omar Sandoval <osandov@fb.com>
common/rc
tests/block/011