diff --git a/net/eth.c b/net/eth.c index dbd1e2dbae6dc264455ee3683abce39f78ec9e58..5911b1c78609578dca32525ad29431795721b7f8 100644 --- a/net/eth.c +++ b/net/eth.c @@ -108,6 +108,8 @@ struct eth_device *eth_get_dev_by_name(const char *devname) { struct eth_device *dev, *target_dev; + BUG_ON(devname == NULL); + if (!eth_devices) return NULL;