commit | 888155bbf63a5f955d7a45932ff05e848f715bf0 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Nov 12 11:07:24 2012 +0000 |
committer | Dave Airlie <airlied@redhat.com> | Fri Nov 16 09:53:01 2012 +1000 |
tree | 75646d6dd53b85ac6f37b46c6195e972d7113997 | |
parent | 77b67063bb6bce6d475e910d3b886a606d0d91f7 [diff] |
vmwgfx: return an -EFAULT if copy_to_user() fails copy_to_user() returns the number of bytes remaining to be copied, but we want to return a negative error code here. I fixed a couple of these last year, but I missed this one. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>