Messages in this thread Patch in this message | | | Date | Tue, 21 Feb 2006 15:29:04 +0900 | From | Kenji Kaneshige <> | Subject | [PATCH 2/6] PCI legacy I/O port free driver (take2) - Fix minor bug in store_new_id() |
| |
This patch fixes invalid use of sscanf() in store_new_id().
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
--- drivers/pci/pci-driver.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.16-rc4/drivers/pci/pci-driver.c =================================================================== --- linux-2.6.16-rc4.orig/drivers/pci/pci-driver.c 2006-02-21 14:40:46.000000000 +0900 +++ linux-2.6.16-rc4/drivers/pci/pci-driver.c 2006-02-21 14:40:55.000000000 +0900 @@ -47,7 +47,7 @@ unsigned long driver_data=0; int fields=0; - fields = sscanf(buf, "%x %x %x %x %x %x %lux", + fields = sscanf(buf, "%x %x %x %x %x %x %lx", &vendor, &device, &subvendor, &subdevice, &class, &class_mask, &driver_data); if (fields < 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/
| |