sky2: fix oops on shutdown
authorStephen Hemminger <shemminger@linux-foundation.org>
Fri, 11 May 2007 18:21:44 +0000 (11:21 -0700)
committerJeff Garzik <jeff@garzik.org>
Fri, 11 May 2007 21:53:33 +0000 (17:53 -0400)
commit549a68c3fe2ca320b0764d1289d17af797daa5d1
tree0c9f4b729ba37f6c28b725f885dc5ac6b9173485
parent4093785dd16d0b7058eb92331bfd7b40b12151f3
sky2: fix oops on shutdown

If the device is fails during module startup for some reason like
unsupported chip version then the driver would crash dereferencing a
null pointer, on shutdown or suspend/resume.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/sky2.c