]> Git Repo - J-u-boot.git/commit - net/eth_legacy.c
net/eth.c: throw BUG for eth_get_dev_by_name(NULL)
authorHelmut Raiger <[email protected]>
Mon, 22 Aug 2011 00:17:17 +0000 (00:17 +0000)
committerWolfgang Denk <[email protected]>
Fri, 9 Sep 2011 21:58:47 +0000 (23:58 +0200)
commit7e7f903fcd7883d3646223e3cb30b50a7dfe6248
treec8c1b3aa1dfec9534d1b9f90aa858fdd54222ba5
parent24e1664472deef23abb3246da8573ddefc0c7971
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: Helmut Raiger <[email protected]>
Acked-by: Mike Frysinger <[email protected]>
net/eth.c
This page took 0.031065 seconds and 4 git commands to generate.