[PATCH 5.18 0330/1095] virtio-gpu: fix a missing check to avoid NULL dereference