drm: qxl: add missing return check
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Mar 2017 07:54:10 +0000 (10:54 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 14 Mar 2017 10:54:20 +0000 (11:54 +0100)
commitee5cb7c465360f8eabc351196554e534675bdf6b
tree75d3ff400b1c35eebea621aecbe9039cea92adc2
parent43c27940227039223abbb5107a2eb3d799c8a2ec
drm: qxl: add missing return check

My static checker complains that "release" is uninitialized if
qxl_alloc_release_reserved() fails, so let's add a check for that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170314075410.GB5984@mwanda
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/qxl/qxl_display.c