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

drm/virtio: Handle context ID allocation errors



It is possible to run out of memory while allocating IDs.  The current
code would create a context with an invalid ID; change it to return
-ENOMEM to userspace.

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