diff options
author | Tom Rini <trini@konsulko.com> | 2018-08-24 16:11:01 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-08-24 16:11:01 -0400 |
commit | 15fd1b7903a3090a03cfe453f661822a613a91ee (patch) | |
tree | 65ab83a17440b38d1c5b61f447e309291eb2ff28 /net/eth-uclass.c | |
parent | 8b7f04f14a1b790ff8dec0afc28a9e8477a6eb88 (diff) | |
parent | 49c752c93a785b9bad9d3fbbd52a76bec003eac5 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'net/eth-uclass.c')
-rw-r--r-- | net/eth-uclass.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index fa3f5497a2..91d861be41 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) |