• Chris Wright's avatar
    [PATCH] sis900 kernel oops fix · a8627f44
    Chris Wright authored
    Backport of fix described below.
    
      From: Herbert Xu <herbert@gondor.apana.org.au>
    
      Fix bug #4223.
    
      OK, this happened because we got preempted before sis900_mii_probe
      finished setting the sis_priv->mii.  Theoretically this can happen
      with SMP as well but I suppose the number of SMP machines with sis900
      is fairly small.
    
      Anyway, the fix is to make sure that sis900_mii_probe is done before
      the device can be opened.  This patch does it by moving the setup
      before register_netdevice.
    
      Since the netdev name is not available before register_netdev, I've
      changed the relevant printk's to use pci_name instead.  Note that
      one of those printk's may be called after register_netdev as well.
    Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    a8627f44
sis900.c 67 KB