cxgbe(4): Use correct port_info in the call to is_bt().
This fixes a panic during configuration if the tx channel of a port isn't the same as its port id. Reported by: Fabrice Bruel MFC after: 1 week Sponsored by: Chelsio Communications
This commit is contained in:
parent
c9bb1ab3c9
commit
48c552a3c7
@ -3894,7 +3894,7 @@ int t4_link_l1cfg(struct adapter *adap, unsigned int mbox, unsigned int port,
|
||||
speed = fwcap_top_speed(lc->supported);
|
||||
|
||||
/* Force AN on for BT cards. */
|
||||
if (is_bt(adap->port[port]))
|
||||
if (is_bt(adap->port[adap->chan_map[port]]))
|
||||
aneg = lc->supported & FW_PORT_CAP32_ANEG;
|
||||
|
||||
rcap = aneg | speed | fc | fec;
|
||||
|
Loading…
x
Reference in New Issue
Block a user