Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6551527 authored by Larry Finger's avatar Larry Finger Committed by Greg Kroah-Hartman
Browse files

staging: vt6655: Fix kernel BUG on driver wpa initialization

In http://bugzilla.novell.com/show_bug.cgi?id=597299

, the vt6655 driver
generates a kernel BUG on a NULL pointer dereference at NULL. This problem
has been traced to a failure in the wpa_set_wpadev() routine. As the vt6656
driver does not call this routine, the vt6655 code is similarly set to skip
the call.

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Tested-by: default avatarRichard Meek <osl2008@googlemail.com>
Cc: Stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8ff23777
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1091,11 +1091,13 @@ device_found1(struct pci_dev *pcid, const struct pci_device_id *ent)
    }
    }
//2008-07-21-01<Add>by MikeLiu
//2008-07-21-01<Add>by MikeLiu
//register wpadev
//register wpadev
#if 0
   if(wpa_set_wpadev(pDevice, 1)!=0) {
   if(wpa_set_wpadev(pDevice, 1)!=0) {
     printk("Fail to Register WPADEV?\n");
     printk("Fail to Register WPADEV?\n");
        unregister_netdev(pDevice->dev);
        unregister_netdev(pDevice->dev);
        free_netdev(dev);
        free_netdev(dev);
   }
   }
#endif
    device_print_info(pDevice);
    device_print_info(pDevice);
    pci_set_drvdata(pcid, pDevice);
    pci_set_drvdata(pcid, pDevice);
    return 0;
    return 0;