UPSTREAM: 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:Matthew Wilcox <willy@infradead.org> Link: http://patchwork.freedesktop.org/patch/msgid/20181030165352.13065-1-willy@infradead.org Signed-off-by:
Gerd Hoffmann <kraxel@redhat.com> (cherry picked from commit 556c62e85f9b97139c1b3f6f1585fcee0bc3eb6a) Signed-off-by:
Greg Hartman <ghartman@google.com> BUG: 139386237 Change-Id: I0bc83d49fe6b40b6fb5d0e9b1da3cdf64b48f5b3
Loading
Please register or sign in to comment