Fix a potential NULL pointer dereference in mace_interrupt() in drivers/net/pcmcia...
authorMicah Gruber <micah.gruber@gmail.com>
Tue, 24 Jul 2007 02:44:56 +0000 (10:44 +0800)
committerJeff Garzik <jeff@garzik.org>
Mon, 30 Jul 2007 19:58:54 +0000 (15:58 -0400)
commitc196d80f994ef4ffefd5a7c62e3f42bd75d538bc
tree324724a86e675d468c625e419aa99fb60d09c155
parent85e27831941e0d907be8e244202a293d74730e12
Fix a potential NULL pointer dereference in mace_interrupt() in drivers/net/pcmcia/nmclan_cs.c

This patch fixes a potential null dereference bug where we dereference
DEV before a null check. This patch simply moves the dereferencing after
the null check.

Signed-off-by: Micah Gruber <micah.gruber@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/pcmcia/nmclan_cs.c