cxgb3 - fix skb->dev dereference
eth_type_trans() now sets skb->dev. References to skb->dev should happen after it is called. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
d41f2d17f8
commit
e360b5628f
1 changed files with 1 additions and 1 deletions
|
@ -1690,8 +1690,8 @@ static void rx_eth(struct adapter *adap, struct sge_rspq *rq,
|
|||
struct port_info *pi;
|
||||
|
||||
skb_pull(skb, sizeof(*p) + pad);
|
||||
skb->dev->last_rx = jiffies;
|
||||
skb->protocol = eth_type_trans(skb, adap->port[p->iff]);
|
||||
skb->dev->last_rx = jiffies;
|
||||
pi = netdev_priv(skb->dev);
|
||||
if (pi->rx_csum_offload && p->csum_valid && p->csum == 0xffff &&
|
||||
!p->fragment) {
|
||||
|
|
Loading…
Reference in a new issue