diff options
Diffstat (limited to 'drivers/net/ethernet/lantiq_etop.c')
-rw-r--r-- | drivers/net/ethernet/lantiq_etop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c index 85e2c6cd9708..86d2fe6e053d 100644 --- a/drivers/net/ethernet/lantiq_etop.c +++ b/drivers/net/ethernet/lantiq_etop.c | |||
@@ -731,6 +731,10 @@ ltq_etop_probe(struct platform_device *pdev) | |||
731 | } | 731 | } |
732 | 732 | ||
733 | dev = alloc_etherdev_mq(sizeof(struct ltq_etop_priv), 4); | 733 | dev = alloc_etherdev_mq(sizeof(struct ltq_etop_priv), 4); |
734 | if (!dev) { | ||
735 | err = -ENOMEM; | ||
736 | goto err_out; | ||
737 | } | ||
734 | strcpy(dev->name, "eth%d"); | 738 | strcpy(dev->name, "eth%d"); |
735 | dev->netdev_ops = <q_eth_netdev_ops; | 739 | dev->netdev_ops = <q_eth_netdev_ops; |
736 | dev->ethtool_ops = <q_etop_ethtool_ops; | 740 | dev->ethtool_ops = <q_etop_ethtool_ops; |