]> git.baikalelectronics.ru Git - kernel.git/commit
sis190: use an adequate phy list entry as a fallback
authorfrançois romieu <romieu@fr.zoreil.com>
Wed, 17 Jun 2009 11:43:11 +0000 (11:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jun 2009 01:46:46 +0000 (18:46 -0700)
commit76d2ad5b337f7e599c00e212d44ee2f71b28894d
tree28abad21db7632288692371f62d8c47108bfeeaa
parent62139fedf13662cd88983e0ce4ce243ca7fc47f7
sis190: use an adequate phy list entry as a fallback

When sis190 driver is trying to get default phy, if it doesn't find home
or lan phy, it falls back to the first phy in the phy list but list_entry()
points to a bogus entry. list_first_entry() should be used instead.

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
Acked-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sis190.c