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) ...@@ -664,7 +664,7 @@ static int pms_capture(struct pms_device *dev, char *buf, int rgb555, int count)
dt=count-len; dt=count-len;
cnt += dev->height; cnt += dev->height;
if (copy_to_user(buf, tmp+32, dt)) if (copy_to_user(buf, tmp+32, dt))
return -EFAULT; return len ? len : -EFAULT;
buf += dt; buf += dt;
len += 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