Commit 16a13d05 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] atp870u.c lockup fix

Fix infinite loop in the device probe function.
parent f8a938c3
...@@ -2304,9 +2304,7 @@ static int atp870u_detect(Scsi_Host_Template * tpnt) ...@@ -2304,9 +2304,7 @@ static int atp870u_detect(Scsi_Host_Template * tpnt)
printk(KERN_INFO "aec671x_detect: \n"); printk(KERN_INFO "aec671x_detect: \n");
tpnt->proc_name = "atp870u"; tpnt->proc_name = "atp870u";
h = 0; for (h = 0; devid[h]; h++) {
while (devid[h] != 0)
{
struct pci_dev *dev = NULL; struct pci_dev *dev = NULL;
while((dev = pci_find_device(0x1191, devid[h], dev))!=NULL) while((dev = pci_find_device(0x1191, devid[h], dev))!=NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment