commit | 556c62e85f9b97139c1b3f6f1585fcee0bc3eb6a | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <willy@infradead.org> | Tue Oct 30 09:53:51 2018 -0700 |
committer | Gerd Hoffmann <kraxel@redhat.com> | Wed Nov 14 12:50:34 2018 +0100 |
tree | 7e954dcef435d0b5b8a1128b81f92cd03f35b597 | |
parent | 7db647aa8b134059c3b8f26b1dd2e1aa5b91e2ca [diff] |
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>