Message ID | AANLkTin9uVOKY0dsJFQ1KNM2x9G1meoMCeQjec2XgmEK@mail.gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index cd0282d..e97ee0f 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -294,7 +294,7 @@ fec_enet_start_xmit(struct sk_buff *skb, struct net_device *dev) * the system that it's running on. As the result, driver has to * swap every frame going to and coming from the controller. */ - if (id_entry->driver_data & FEC_QUIRK_SWAP_FRAME) + if (id_entry && id_entry->driver_data & FEC_QUIRK_SWAP_FRAME) swap_buffer(bufaddr, skb->len);