From: Martin Michlmayr <tbm@cyrius.com>
To: Jordan Crouse <jordan.crouse@amd.com>
Cc: linux-usb-devel@lists.sourceforge.net, linux-mips@linux-mips.org,
gregkh@suse.de
Subject: Re: [PATCH] Buglet in Alchemy OHCI driver
Date: Wed, 1 Mar 2006 18:37:35 +0000 [thread overview]
Message-ID: <20060301183735.GA28491@deprecation.cyrius.com> (raw)
In-Reply-To: <20060301183026.GL31957@cosmic.amd.com>
* Jordan Crouse <jordan.crouse@amd.com> [2006-03-01 11:30]:
> Martin Michlmayr spotted this potentially serious bug. Please apply.
Please don't send patches as MIME attachments. Here it is again (with
a better summary too):
[PATCH] Alchemy OCHI: return if right resources cannot be obtained
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>
Signed-off-by: Martin Michlmayr <tbm@cyrius.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");
--
Martin Michlmayr
http://www.cyrius.com/
next prev parent reply other threads:[~2006-03-01 18:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 18:30 [PATCH] Buglet in Alchemy OHCI driver Jordan Crouse
2006-03-01 18:37 ` Martin Michlmayr [this message]
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=20060301183735.GA28491@deprecation.cyrius.com \
--to=tbm@cyrius.com \
--cc=gregkh@suse.de \
--cc=jordan.crouse@amd.com \
--cc=linux-mips@linux-mips.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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