Skip to content
Commit 556c62e8 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Gerd Hoffmann
Browse files

drm/virtio: Handle error from virtio_gpu_resource_id_get



ida_alloc() can return -ENOMEM in the highly unlikely case we run out
of memory.  The current code creates an object with an invalid ID.

Signed-off-by: default avatarMatthew Wilcox <willy@infradead.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20181030165352.13065-1-willy@infradead.org
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 7db647aa
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