lkml.org 
[lkml]   [2003]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: fix return on pms change
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test2/drivers/media/video/pms.c linux-2.6.0-test2-ac1/drivers/media/video/pms.c
--- linux-2.6.0-test2/drivers/media/video/pms.c 2003-07-27 19:56:24.000000000 +0100
+++ linux-2.6.0-test2-ac1/drivers/media/video/pms.c 2003-07-27 20:17:24.000000000 +0100
@@ -664,7 +664,7 @@
dt=count-len;
cnt += dev->height;
if (copy_to_user(buf, tmp+32, dt))
- return -EFAULT;
+ return len ? len : -EFAULT;
buf += dt;
len += dt;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.017 / U:1.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site