qxl: check for kmap failures
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 11 Jul 2016 08:46:33 +0000 (11:46 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Jul 2016 14:20:17 +0000 (16:20 +0200)
commitf4cceb2affcd1285d4ce498089e8a79f4cd2fa66
tree70ec8b8b431eb21967cef15dacca2a69d55021f5
parentfb001dfd7e773d86b5dcd2050995a5fee301eab1
qxl: check for kmap failures

If kmap fails, it leads to memory corruption.

Fixes: f64122c1f6ad ('drm: add new QXL driver. (v1.4)')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160711084633.GA31411@mwanda
drivers/gpu/drm/qxl/qxl_draw.c