r8169: NULL pointer dereference on r8169 load
authorPetr Vandrovec <petr@vandrovec.name>
Mon, 13 Oct 2008 03:58:29 +0000 (20:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Oct 2008 03:58:29 +0000 (20:58 -0700)
commit738e1e694bf6d9e965ba0ce2667a1bec5780a172
tree803330370e1127554c5c2f3e1e821c4afdd6b86e
parentf3073ac76755abd63b1d4c3d145f4c15b65b5355
r8169: NULL pointer dereference on r8169 load

mmio_addr in r8169 needs to be initialized before use

Maybe that all tp-> initialization should be moved before rtl_init_mac_address call,
but this is enough to get rid of crash in rtl_rar_set due to mmio_addr being uninitialized.

Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r8169.c