Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s390: avoid potential null dereference in s390_pcihost_unplug()
When getting the 'pbdev', the if...else has no default branch. From Coverity, the 'pbdev' maybe null when the 'dev' is not the TYPE_PCI_BRIDGE/TYPE_PCI_DEVICE/TYPE_S390_PCI_DEVICE. This patch adds a default branch for device plug and unplug. Spotted by Coverity: CID 1398593 Signed-off-by: Li Qiang <[email protected]> Message-Id: <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Reviewed-by: Halil Pasic <[email protected]> Reviewed-by: Collin Walling <[email protected]> Signed-off-by: Cornelia Huck <[email protected]>
- Loading branch information