drm: vkms: check status of alloc_ordered_workqueue
authorKangjie Lu <kjlu@umn.edu>
Sat, 9 Mar 2019 04:36:27 +0000 (22:36 -0600)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 25 Mar 2019 08:33:42 +0000 (09:33 +0100)
commit208c6e8cff1b96eca401adbd544ac00133df9e90
treedbf483bcd997ba7a356fb521d70fd867a0ffc616
parent60e6ecfb616f0d2b927ce2e47dbd0e50c8c9253e
drm: vkms: check status of alloc_ordered_workqueue

alloc_ordered_workqueue may fail and return NULL.
The fix returns ENOMEM when it fails to avoid potential NULL
pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190309043628.6078-1-kjlu@umn.edu
drivers/gpu/drm/vkms/vkms_crtc.c