Skip to content
Commit 49814ce9 authored by Peng Hao's avatar Peng Hao Committed by Michael S. Tsirkin
Browse files

virtio/virtio_pci_legacy_dev: ensure the correct return value



When pci_iomap return NULL, the return value is zero.

Signed-off-by: default avatarPeng Hao <flyingpeng@tencent.com>
Link: https://lore.kernel.org/r/20211222112014.87394-1-flyingpeng@tencent.com
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
parent cf4a4493
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment