From: "Jordan Crouse" <jordan.crouse@amd.com>
To: linux-usb-devel@lists.sourceforge.net
Cc: linux-mips@linux-mips.org, gregkh@suse.de, tbm@cyrius.com
Subject: [PATCH] Buglet in Alchemy OHCI driver
Date: Wed, 1 Mar 2006 11:30:26 -0700 [thread overview]
Message-ID: <20060301183026.GL31957@cosmic.amd.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 196 bytes --]
Martin Michlmayr spotted this potentially serious bug. Please apply.
Jordan
--
Jordan Crouse
Senior Linux Engineer
AMD - Personal Connectivity Solutions Group
<www.amd.com/embeddedprocessors>
[-- Attachment #2: ohci-fix.patch --]
[-- Type: text/plain, Size: 827 bytes --]
[PATCH] Buglet in Alchemy OCHI
From: Jordan Crouse <jordan.crouse@amd.com>
Failure to get the right resources should immediately return.
Current code has the possiblity of running off into the weeds. Spotted by
Martin Michlmayr.
Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
---
drivers/usb/host/ohci-au1xxx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/host/ohci-au1xxx.c b/drivers/usb/host/ohci-au1xxx.c
index aa4d0cd..d8fb1bb 100644
--- a/drivers/usb/host/ohci-au1xxx.c
+++ b/drivers/usb/host/ohci-au1xxx.c
@@ -94,7 +94,7 @@ int usb_hcd_au1xxx_probe (const struct h
if (dev->resource[1].flags != IORESOURCE_IRQ) {
pr_debug ("resource[1] is not IORESOURCE_IRQ");
- retval = -ENOMEM;
+ return -ENOMEM;
}
hcd = usb_create_hcd(driver, &dev->dev, "Au1xxx");
next reply other threads:[~2006-03-01 18:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 18:30 Jordan Crouse [this message]
2006-03-01 18:37 ` [PATCH] Buglet in Alchemy OHCI driver Martin Michlmayr
2006-03-01 23:21 ` Greg KH
2006-03-02 15:33 ` Ralf Baechle
2006-03-02 16:28 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2006-03-07 12:17 Hamilton, Ian
2006-03-07 12:17 ` Hamilton, Ian
2006-03-07 16:54 ` Greg KH
2006-03-07 18:28 ` Ralf Baechle
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=20060301183026.GL31957@cosmic.amd.com \
--to=jordan.crouse@amd.com \
--cc=gregkh@suse.de \
--cc=linux-mips@linux-mips.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=tbm@cyrius.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.