net: Check network device driver name
authorMichal Simek <monstr@monstr.eu>
Mon, 29 Aug 2011 23:30:13 +0000 (23:30 +0000)
committerWolfgang Denk <wd@denx.de>
Sun, 4 Sep 2011 21:29:39 +0000 (23:29 +0200)
commit58c583b6c2ebc459de018c772fea5437de430063
tree04b450fcb1f6bc4d817bce1f685b5ae1cdfe2e48
parent03bf22f55990d27a1d3a5f8c6f8c94fb400f77d4
net: Check network device driver name

If name is longer than allocated space NAMESIZE
mac address is rewritten which show error
message like:

Error message:
Warning: Xlltemac.87000000 MAC addresses don't match:
Address in SROM is         30:00:00:00:00:00
Address in environment is  00:0a:35:00:6a:04

NAMESIZE contains Driver name + zero terminated character.

Signed-off-by: Michal Simek <monstr@monstr.eu>
net/eth.c