PCI: Check dynids driver_data value for validity
Only accept dynids whose driver_data value matches one of the driver's pci_driver_id entries. This prevents the user from accidentally passing values the drivers do not expect. Cc: Milton Miller <miltonm@bga.com> Acked-by:Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by:
Jean Delvare <khali@linux-fr.org> Signed-off-by:
Jesse Barnes <jbarnes@virtuousgeek.org>
Showing
- Documentation/PCI/pci.txt 4 additions, 0 deletionsDocumentation/PCI/pci.txt
- drivers/i2c/busses/i2c-amd756.c 0 additions, 4 deletionsdrivers/i2c/busses/i2c-amd756.c
- drivers/i2c/busses/i2c-viapro.c 0 additions, 4 deletionsdrivers/i2c/busses/i2c-viapro.c
- drivers/pci/pci-driver.c 16 additions, 2 deletionsdrivers/pci/pci-driver.c
Loading
Please register or sign in to comment