diff options
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_ioctl.c')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_ioctl.c b/drivers/gpu/drm/virtio/virtgpu_ioctl.c index 5720a0d4ac0a..355569a9b5cb 100644 --- a/drivers/gpu/drm/virtio/virtgpu_ioctl.c +++ b/drivers/gpu/drm/virtio/virtgpu_ioctl.c | |||
@@ -518,6 +518,8 @@ static int virtio_gpu_get_caps_ioctl(struct drm_device *dev, | |||
518 | 518 | ||
519 | ret = wait_event_timeout(vgdev->resp_wq, | 519 | ret = wait_event_timeout(vgdev->resp_wq, |
520 | atomic_read(&cache_ent->is_valid), 5 * HZ); | 520 | atomic_read(&cache_ent->is_valid), 5 * HZ); |
521 | if (!ret) | ||
522 | return -EBUSY; | ||
521 | 523 | ||
522 | ptr = cache_ent->caps_cache; | 524 | ptr = cache_ent->caps_cache; |
523 | 525 | ||