]> git.baikalelectronics.ru Git - kernel.git/commit
[TG3]: Fix 5704 single-port mode
authorMichael Chan <mchan@broadcom.com>
Wed, 14 Dec 2005 05:09:54 +0000 (21:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Dec 2005 05:09:54 +0000 (21:09 -0800)
commit74bd60060fac2929ca6f1a360c0310babeaae770
tree909a2b173d5140b22df9f35a252dc204dba56bdd
parentafd7e5bd88e3047cf742343f1f12c4a9f1f9cf14
[TG3]: Fix 5704 single-port mode

If the dual-port 5704 is configured as a single-port device with
only one PCI function, it would trigger a BUG() condition in
tg3_find_5704_peer(). This fixes the problem by returning its
own pdev if the peer cannot be found.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c