archive mirror
 help / color / mirror / Atom feed
From: Alan Cox <>
Subject: PATCH: fix return on pms change
Date: Sun, 27 Jul 2003 21:05:52 +0100	[thread overview]
Message-ID: <> (raw)

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 @@
 			cnt += dev->height;
 			if (copy_to_user(buf, tmp+32, dt))
-				return -EFAULT;
+				return len ? len : -EFAULT;
 			buf += dt;    
 			len += dt;

                 reply	other threads:[~2003-07-28  0:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: PATCH: fix return on pms change' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).