warp7: MAINTAINERS: Add an entry for warp7_bl33_defconfig
[oweals/u-boot.git] / net / eth-uclass.c
index fa3f5497a2902577f2bbb84947d918836b7bcbab..91d861be41365459a7bd5c114376b59b8c5a7652 100644 (file)
@@ -312,7 +312,8 @@ void eth_halt(void)
 
        eth_get_ops(current)->stop(current);
        priv = current->uclass_priv;
-       priv->state = ETH_STATE_PASSIVE;
+       if (priv)
+               priv->state = ETH_STATE_PASSIVE;
 }
 
 int eth_is_active(struct udevice *dev)