From: <gregkh@suse.de>
To: 12o3l@tiscali.nl, gregkh@suse.de, greg@kroah.com,
linux-kernel@vger.kernel.org, steve@xemacs.org
Subject: patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree
Date: Mon, 28 Apr 2008 16:53:11 -0700 [thread overview]
Message-ID: <12094267913945@kroah.org> (raw)
In-Reply-To: <4806CF18.2050403@tiscali.nl>
This is a note to let you know that I've just added the patch titled
Subject: USB: mos7840: test and propagate set_uart_reg return value
to my gregkh-2.6 tree. Its filename is
usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch
This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/
>From 12o3l@tiscali.nl Wed Apr 16 21:16:30 2008
From: Roel Kluin <12o3l@tiscali.nl>
Date: Thu, 17 Apr 2008 06:16:24 +0200
Subject: USB: mos7840: test and propagate set_uart_reg return value
To: Greg KH <greg@kroah.com>, linux-usb@vger.kernel.org, lkml <linux-kernel@vger.kernel.org>
Message-ID: <4806CF18.2050403@tiscali.nl>
The test for an mos7840_set_uart_reg() error return value only works when
status is signed. propagate its error value.
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Cc: SL Baur <steve@xemacs.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/usb/serial/mos7840.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -1713,7 +1713,7 @@ static int mos7840_tiocmset(struct usb_s
{
struct moschip_port *mos7840_port;
unsigned int mcr;
- unsigned int status;
+ int status;
dbg("%s - port %d", __func__, port->number);
@@ -1740,11 +1740,10 @@ static int mos7840_tiocmset(struct usb_s
mos7840_port->shadowMCR = mcr;
- status = 0;
status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mcr);
if (status < 0) {
dbg("setting MODEM_CONTROL_REGISTER Failed\n");
- return -1;
+ return status;
}
return 0;
Patches currently in gregkh-2.6 which might be from 12o3l@tiscali.nl are
usb/usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch
next prev parent reply other threads:[~2008-04-28 23:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-17 4:16 [PATCH] mos7840: test and propagate set_uart_reg return value Roel Kluin
2008-04-17 6:58 ` SL Baur
2008-04-28 23:53 ` gregkh [this message]
2008-04-29 6:31 ` patch usb-mos7840-test-and-propagate-set_uart_reg-return-value.patch added to gregkh-2.6 tree SL Baur
2008-04-29 6:51 ` Greg KH
2008-04-29 7:33 ` SL Baur
2008-04-30 6:03 ` Greg KH
2008-05-01 1:56 ` SL Baur
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=12094267913945@kroah.org \
--to=gregkh@suse.de \
--cc=12o3l@tiscali.nl \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=steve@xemacs.org \
/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