[openEuler-5.10-LTS 161/501] virtio-gpu: fix a missing check to avoid NULL dereference