]> git.neil.brown.name Git - history.git/commit
[PATCH] sis900 kernel oops fix
authorChris Wright <chrisw@osdl.org>
Sat, 12 Mar 2005 13:46:45 +0000 (05:46 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 12 Mar 2005 13:46:45 +0000 (05:46 -0800)
commita8627f44c2b5ad6414769f108c0e4659dbf91aa5
tree0d83666ed35303e34f24b08ee9349dd4828c174c
parente0e4e66b4a81795bc907e71c7bbbf0fe10ca4e6e
[PATCH] sis900 kernel oops fix

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: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/sis900.c