Re: [PATCH] PCI and PCI Hotplug fixes for 2.6.5-rc1

From: Greg KH (greg_at_kroah.com)
Date: 03/20/04

  • Next message: Greg KH: "Re: [PATCH] PCI and PCI Hotplug fixes for 2.6.5-rc1"
    Date:	Fri, 19 Mar 2004 15:32:12 -0800
    To: linux-kernel@vger.kernel.org
    
    

    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;
             }
     

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Greg KH: "Re: [PATCH] PCI and PCI Hotplug fixes for 2.6.5-rc1"

    Relevant Pages

    • [1/3] insert_resource can succeed and return an error
      ... we can return an error even if we were successful. ... Reset the result to 0 before beginning again. ... conscience-soothing falsities, and will diligently study them, and refuse ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 5/8] netpoll: add retry timeout
      ... Each time we attempt to send, decrement our per-device retry counter. ... On every successful send, we reset the counter. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • i386 cache flush from user space exception
      ... I haven't been successful in finding any ... references elsewhere to such behavior, and hence I found the only choice ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Error in cmpci.c ?
      ... In drivers/sound/cmpci.c or sound/oss we have a ... I don't see any reset. ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: Does Linux support powering down SATA drives?
      ... Alistair John Strachan wrote: ... I had to use reset button. ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)