kernel-hacking-2024-linux-s.../drivers
Jean Delvare 6ba186361e PCI: Require vendor and device for new_id
Currently, there is no minimum number of fields required when adding
a new device ID to a PCI driver through the new_id sysfs file. It is
possible to add a new ID with only the vendor ID set, causing the
driver to attempt to attach to all PCI devices from that vendor. This
has been reported to happen accidentally:
  http://lists.lm-sensors.org/pipermail/lm-sensors/2007-March/019366.html
It is even possible to not even set the vendor ID field, causing the
driver to attempt to attach to _all_ the PCI devices.

This sounds dangerous and I fail to see any valid use of this
"feature". Thus I suggest that we now require at least the first two
fields (vendor ID and device ID) to be set. For what it's worth, this
is what the USB subsystem does.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-05-02 19:02:35 -07:00
..
acorn
acpi power management: implement pm_ops.valid for everybody 2007-04-30 16:40:40 -07:00
amba
ata libata: honour host controllers that want just one host 2007-04-30 17:43:48 -07:00
atm PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
auxdisplay
base
block
bluetooth
cdrom
char PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
clocksource
connector
cpufreq
crypto
dio
dma
edac
eisa
fc4
firmware
hid Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jikos/hid 2007-04-30 08:58:21 -07:00
hwmon Merge branch 'linux-2.6' into for-2.6.22 2007-04-30 12:38:01 +10:00
i2c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
ide
ieee1394 PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
infiniband PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
input
isdn PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
kvm
leds
macintosh Merge branch 'linux-2.6' into for-2.6.22 2007-04-30 12:38:01 +10:00
mca
md [BLOCK] Don't pin lots of memory in mempools 2007-04-30 09:08:17 +02:00
media PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
message
mfd
misc PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
mmc
mtd PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
net PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
nubus
oprofile
parisc PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
parport
pci PCI: Require vendor and device for new_id 2007-05-02 19:02:35 -07:00
pcmcia PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
pnp
ps3 [POWERPC] Remove dev_dbg redefinition in drivers/ps3/vuart.c 2007-04-30 13:03:39 +10:00
rapidio
rtc
s390
sbus PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
scsi PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
serial Merge branch 'linux-2.6' into for-2.6.22 2007-04-30 12:38:01 +10:00
sh
sn
spi
tc
telephony
usb PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
video PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
w1
zorro
Kconfig
Makefile