Skip to content
Snippets Groups Projects
Commit 7e7f903f authored by Helmut Raiger's avatar Helmut Raiger Committed by Wolfgang Denk
Browse files

net/eth.c: throw BUG for eth_get_dev_by_name(NULL)


eth_get_dev_by_name() is not safe to use for devname being NULL
as it uses strcmp. This patch makes it fail with a BUG().

Signed-off-by: default avatarHelmut Raiger <helmut.raiger@hale.at>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 24e16644
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment