dde_linux: Fix MAC validity check

This commit is contained in:
Norman Feske 2013-09-15 17:39:59 +02:00
parent c9194a2af4
commit 7f86eb3805
1 changed files with 2 additions and 2 deletions

View File

@ -1109,13 +1109,13 @@ struct net_device *alloc_etherdev(int sizeof_priv)
int is_valid_ether_addr(const u8 *addr)
{
/* is multicast */
if (!(addr[0] & 0x1))
if ((addr[0] & 0x1))
return 0;
/* zero */
if (!(addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5]))
return 0;
return 1;
}