From 7f86eb3805a81fbbbc1c1c53c19a890ee589a4b8 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Sun, 15 Sep 2013 17:39:59 +0200 Subject: [PATCH] dde_linux: Fix MAC validity check --- dde_linux/src/lib/usb/lx_emul.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dde_linux/src/lib/usb/lx_emul.cc b/dde_linux/src/lib/usb/lx_emul.cc index 2c4a7789d2..3bfa115da6 100644 --- a/dde_linux/src/lib/usb/lx_emul.cc +++ b/dde_linux/src/lib/usb/lx_emul.cc @@ -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; }