Message ID | 1529330212-9022-3-git-send-email-jjhiblot@ti.com |
---|---|
State | Superseded |
Delegated to: | Lukasz Majewski |
Headers | show |
Series | Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller | expand |
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index e4b4922..3a5217a 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -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)