r8169: fix oops in r8169_get_mac_version
authorIvan Vecera <ivecera@redhat.com>
Thu, 17 Apr 2008 20:48:41 +0000 (22:48 +0200)
committerFrancois Romieu <romieu@fr.zoreil.com>
Thu, 17 Apr 2008 20:48:41 +0000 (22:48 +0200)
commit21e197f231343201368338603cb0909a13961bac
tree697b93be0ba9df2fbc481f72d7950b76be314ed1
parentcee60c377de6d9d10f0a2876794149bd79a15020
r8169: fix oops in r8169_get_mac_version

r8169_get_mac_version crashes when it meets an unknown MAC
due to tp->pci_dev not being set. Initialize it early.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
drivers/net/r8169.c