commit | ee9712ae978f2274b109f00c1fa8e78e00497b05 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Thu Dec 05 20:17:36 2024 +0100 |
committer | Tom Rini <trini@konsulko.com> | Thu Dec 19 12:17:37 2024 -0600 |
tree | 2027cc0c02345f11652b09cc8eeae795ffc52b53 | |
parent | c259ac192e7764421a41b34e884e59db3f727197 [diff] |
net: lwip: check if network device is available in do_dhcp eth_get_dev() returns NULL if no network device is available. Not checking the return value leads to a crash when the device pointer is dereferenced. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>