Dan Carpenter f7741aa75e drm/savage: dereferencing an error pointer
A recent cleanup changed the kmalloc() + copy_from_user() to
memdup_user() but the error handling wasn't updated so we might call
kfree(-EFAULT) and crash.

Fixes: a6e3918bcdb1 ('GPU-DRM-Savage: Use memdup_user() rather than duplicating')
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/20161012062227.GU12841@mwanda
2016-10-13 07:56:14 +02:00
..
2016-09-19 11:22:08 +02:00
2016-09-28 12:08:49 +10:00
2016-09-19 11:22:08 +02:00
2016-09-28 12:08:49 +10:00
2016-09-19 11:22:08 +02:00
2016-09-28 12:08:49 +10:00
2016-09-28 11:23:15 +10:00
2016-09-28 12:08:49 +10:00
2016-09-28 12:08:49 +10:00
2016-09-19 15:04:15 +02:00
2016-09-22 00:04:02 -07:00
2016-09-21 13:33:50 +02:00
2016-09-28 12:08:49 +10:00
2016-09-19 11:21:42 +02:00
2016-09-22 00:01:56 -07:00
2016-09-19 11:22:08 +02:00
2016-09-06 13:56:41 -04:00
2016-09-19 11:21:42 +02:00
2016-09-19 13:57:38 +02:00
2016-09-19 13:57:38 +02:00
2016-09-19 13:57:38 +02:00
2016-09-19 13:57:38 +02:00
2016-09-22 00:04:02 -07:00