linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: fix return on pms change
@ 2003-07-27 20:05 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2003-07-27 20:05 UTC (permalink / raw)
  To: linux-kernel, torvalds

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;
 		}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-28  0:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-27 20:05 PATCH: fix return on pms change Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).