[PATCH 5.19 0348/1157] virtio-gpu: fix a missing check to avoid NULL dereference