Re: [BK PATCH] More PCI Hotplug changes for 2.4.20-pre7

From: Greg KH (greg@kroah.com)
Date: Thu Sep 19 2002 - 19:59:30 EST


# 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.688 -> 1.689
# drivers/hotplug/pci_hotplug_core.c 1.7 -> 1.8
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/09/19 greg@kroah.com 1.689
# 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:18:55 2002
+++ b/drivers/hotplug/pci_hotplug_core.c Thu Sep 19 17:18:55 2002
@@ -615,7 +615,7 @@
 
         if (*offset < 0)
                 return -EINVAL;
- if (count <= 0)
+ if (count == 0 || count > 16384)
                 return 0;
         if (*offset != 0)
                 return 0;
@@ -726,7 +726,7 @@
 
         if (*offset < 0)
                 return -EINVAL;
- if (count <= 0)
+ if (count == 0 || count > 16384)
                 return 0;
         if (*offset != 0)
                 return 0;
@@ -964,7 +964,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/



This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:29 EST