net/mlx5_en: Add missing check for memory allocation failure
[deliverable/linux.git] / drivers / net / loopback.c
index 8f2262540561caf546ea53740a20795b10f51205..c76283c2f84a4e7aa21b684770542e9b6202bffd 100644 (file)
@@ -169,7 +169,7 @@ static void loopback_setup(struct net_device *dev)
        dev->type               = ARPHRD_LOOPBACK;      /* 0x0001*/
        dev->flags              = IFF_LOOPBACK;
        dev->priv_flags         |= IFF_LIVE_ADDR_CHANGE;
-       dev->priv_flags        &= ~IFF_XMIT_DST_RELEASE;
+       netif_keep_dst(dev);
        dev->hw_features        = NETIF_F_ALL_TSO | NETIF_F_UFO;
        dev->features           = NETIF_F_SG | NETIF_F_FRAGLIST
                | NETIF_F_ALL_TSO
This page took 0.024008 seconds and 5 git commands to generate.