lkml.org 
[lkml]   [2002]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [BK PATCH] PCI hotplug changes for 2.5.36
    # This is a BitKeeper generated patch for the following project:
    # Project Name: Linux kernel tree
    # This patch format is intended for GNU patch command version 2.5 or higher.
    # This patch includes the following deltas:
    # ChangeSet 1.562 -> 1.563
    # drivers/hotplug/pci_hotplug_core.c 1.22 -> 1.23
    #
    # The following is the BitKeeper ChangeSet Log
    # --------------------------------------------
    # 02/09/19 greg@kroah.com 1.563
    # PCI Hotplug Core: Add allocation sanity checks. Patch from Silvio Cesare
    # --------------------------------------------
    #
    diff -Nru a/drivers/hotplug/pci_hotplug_core.c b/drivers/hotplug/pci_hotplug_core.c
    --- a/drivers/hotplug/pci_hotplug_core.c Thu Sep 19 17:50:36 2002
    +++ b/drivers/hotplug/pci_hotplug_core.c Thu Sep 19 17:50:36 2002
    @@ -621,7 +621,7 @@

    if (*offset < 0)
    return -EINVAL;
    - if (count <= 0)
    + if (count == 0 || count > 16384)
    return 0;
    if (*offset != 0)
    return 0;
    @@ -732,7 +732,7 @@

    if (*offset < 0)
    return -EINVAL;
    - if (count <= 0)
    + if (count == 0 || count > 16384)
    return 0;
    if (*offset != 0)
    return 0;
    @@ -970,7 +970,7 @@

    if (*offset < 0)
    return -EINVAL;
    - if (count <= 0)
    + if (count == 0 || count > 16384)
    return 0;
    if (*offset != 0)
    return 0;
    -
    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/
    \
     
     \ /
      Last update: 2005-03-22 13:29    [W:0.035 / U:1.152 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site