projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
warp7: MAINTAINERS: Add an entry for warp7_bl33_defconfig
[oweals/u-boot.git]
/
net
/
eth-uclass.c
diff --git
a/net/eth-uclass.c
b/net/eth-uclass.c
index fa3f5497a2902577f2bbb84947d918836b7bcbab..91d861be41365459a7bd5c114376b59b8c5a7652 100644
(file)
--- 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)