[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [Qemu-devel] [PATCH v3] s390: avoid potential null dere
From: |
Halil Pasic |
Subject: |
Re: [qemu-s390x] [Qemu-devel] [PATCH v3] s390: avoid potential null dereference ins390_pcihost_unplug() |
Date: |
Tue, 8 Jan 2019 17:22:14 +0100 |
On Tue, 8 Jan 2019 07:11:14 -0800
Li Qiang <address@hidden> wrote:
> 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 <address@hidden>
Reviewed-by: Halil Pasic <address@hidden>
[..]