Commit cffba320 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix return on pms change

parent 6f90989c
......@@ -664,7 +664,7 @@ static int pms_capture(struct pms_device *dev, char *buf, int rgb555, int count)
dt=count-len;
cnt += dev->height;
if (copy_to_user(buf, tmp+32, dt))
return -EFAULT;
return len ? len : -EFAULT;
buf += dt;
len += dt;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment