commit | f7741aa75e76440f4e9ecfe512feebe9bce33ca8 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Oct 12 09:22:27 2016 +0300 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Thu Oct 13 07:56:14 2016 +0200 |
tree | d01b507f23ef1a21f6d77ba187494e11d6307e17 | |
parent | 1550333c597a98fc1bb529167ecf22333a3b4b39 [diff] |
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