From: Shane Nay <shane@minirl.com>
To: linux-kernel@vger.kernel.org
Cc: linux-usb@sii.li
Subject: Simple cyberjack diff
Date: Tue, 26 Feb 2002 14:16:35 -0800 [thread overview]
Message-ID: <20020226211128Z292609-889+7550@vger.kernel.org> (raw)
While looking around the usb code I noticed this semaphore problem in
cyberjack. Anyway, it's a quicky.
Thanks,
Shane Nay.
--- virgin/linux/drivers/usb/serial/cyberjack.c Fri Dec 21 09:41:55 2001
+++ linux/drivers/usb/serial/cyberjack.c Tue Feb 26 14:09:31 2002
@@ -238,7 +238,8 @@
if( (count+priv->wrfilled)>sizeof(priv->wrbuf) ) {
/* To much data for buffer. Reset buffer. */
priv->wrfilled=0;
- return (0);
+ count=0;
+ goto exit;
}
/* Copy data */
@@ -299,7 +300,7 @@
priv->wrsent=0;
}
}
-
+exit:
up (&port->sem);
return (count);
}
next reply other threads:[~2002-02-26 21:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-26 22:16 Shane Nay [this message]
2002-02-27 4:16 ` Greg KH
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=20020226211128Z292609-889+7550@vger.kernel.org \
--to=shane@minirl.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@sii.li \
/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®