All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI and PCI Hotplug fixes for 2.6.5-rc1
Date: Fri, 19 Mar 2004 15:32:12 -0800	[thread overview]
Message-ID: <10797391322645@kroah.com> (raw)
In-Reply-To: <10797391312346@kroah.com>

ChangeSet 1.1608.97.5, 2004/03/19 14:07:09-08:00, willy@debian.org

[PATCH] PCI: insert_resource can succeed and return an error

If we start again, we can return an error even if we were successful.
Reset the result to 0 before beginning again.  Why don't we use a
tailcall here?


 kernel/resource.c |    1 +
 1 files changed, 1 insertion(+)


diff -Nru a/kernel/resource.c b/kernel/resource.c
--- a/kernel/resource.c	Fri Mar 19 15:21:16 2004
+++ b/kernel/resource.c	Fri Mar 19 15:21:16 2004
@@ -335,6 +335,7 @@
 	/* existing resource overlaps end of new resource */
 	if (next->end > new->end) {
 		parent = next;
+		result = 0;
 		goto begin;
 	}
 


  reply	other threads:[~2004-03-19 23:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-19 23:25 [BK PATCH] PCI and PCI Hotplug fixes for 2.6.5-rc1 Greg KH
2004-03-19 23:32 ` [PATCH] " Greg KH
2004-03-19 23:32   ` Greg KH
2004-03-19 23:32     ` Greg KH
2004-03-19 23:32       ` Greg KH
2004-03-19 23:32         ` Greg KH [this message]
2004-03-19 23:32           ` Greg KH
2004-03-19 23:32             ` 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=10797391322645@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.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 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.