[PATCH v2] drm: return -EFAULT if copy_to_user() fails
Al Viro
viro at zeniv.linux.org.uk
Tue Jun 25 23:18:54 UTC 2019
On Tue, Jun 18, 2019 at 01:16:29PM -0400, Sean Paul wrote:
> On Tue, Jun 18, 2019 at 04:18:43PM +0300, Dan Carpenter wrote:
> > The copy_from_user() function returns the number of bytes remaining
> > to be copied but we want to return a negative error code. Otherwise
> > the callers treat it as a successful copy.
> >
> > Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
>
> Thanks Dan, I've applied this to drm-misc-fixes.
FWIW, Acked-by: Al Viro <viro at zeniv.linux.org.uk>
More information about the dri-devel
mailing list