From: Frank Davis <fdavis@si.rr.com>
To: linux-kernel@vger.kernel.org
Cc: fdavis@si.rr.com, <trivial@rustcorp.com.au>
Subject: [PATCH] 2.5.59 : drivers/char/generic_serial.c
Date: Fri, 7 Feb 2003 11:54:56 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.44.0302071150580.6917-100000@master> (raw)
Hello all,
The following patch fixes buzilla bug # 307 - a dangling else issue.
Please review for inclusion.
Regards,
Frank
--- linux/drivers/char/generic_serial.c.old 2003-01-16 21:22:13.000000000 -0500
+++ linux/drivers/char/generic_serial.c 2003-02-07 03:22:26.000000000 -0500
@@ -142,14 +142,14 @@
/* Can't copy more? break out! */
if (c <= 0) break;
- if (from_user)
+ if (from_user) {
if (copy_from_user (port->xmit_buf + port->xmit_head,
buf, c)) {
up (& port->port_write_sem);
return -EFAULT;
}
- else
+ }else
memcpy (port->xmit_buf + port->xmit_head, buf, c);
port -> xmit_cnt += c;
reply other threads:[~2003-02-07 16:35 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.44.0302071150580.6917-100000@master \
--to=fdavis@si.rr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®