diff options
-rw-r--r-- | drivers/pci/pci-stub.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/pci-stub.c b/drivers/pci/pci-stub.c index 4c0336b31caf..775e933c2225 100644 --- a/drivers/pci/pci-stub.c +++ b/drivers/pci/pci-stub.c | |||
@@ -58,6 +58,9 @@ static int __init pci_stub_init(void) | |||
58 | subdevice = PCI_ANY_ID, class=0, class_mask=0; | 58 | subdevice = PCI_ANY_ID, class=0, class_mask=0; |
59 | int fields; | 59 | int fields; |
60 | 60 | ||
61 | if (!strlen(id)) | ||
62 | continue; | ||
63 | |||
61 | fields = sscanf(id, "%x:%x:%x:%x:%x:%x", | 64 | fields = sscanf(id, "%x:%x:%x:%x:%x:%x", |
62 | &vendor, &device, &subvendor, &subdevice, | 65 | &vendor, &device, &subvendor, &subdevice, |
63 | &class, &class_mask); | 66 | &class, &class_mask); |