projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bf9d8e
)
net/ncsi: use eth_zero_addr() to clear mac address
author
Miaohe Lin
<linmiaohe@huawei.com>
Thu, 23 Jul 2020 11:13:43 +0000
(19:13 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 23 Jul 2020 18:49:41 +0000
(11:49 -0700)
Use eth_zero_addr() to clear mac address insetad of memset().
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ncsi/ncsi-rsp.c
patch
|
blob
|
history
diff --git
a/net/ncsi/ncsi-rsp.c
b/net/ncsi/ncsi-rsp.c
index
a94bb59
..
5b1f4ec
100644
(file)
--- a/
net/ncsi/ncsi-rsp.c
+++ b/
net/ncsi/ncsi-rsp.c
@@
-471,7
+471,7
@@
static int ncsi_rsp_handler_sma(struct ncsi_request *nr)
memcpy(&ncf->addrs[index], cmd->mac, ETH_ALEN);
} else {
clear_bit(cmd->index - 1, bitmap);
-
memset(&ncf->addrs[index], 0, ETH_ALEN
);
+
eth_zero_addr(&ncf->addrs[index]
);
}
spin_unlock_irqrestore(&nc->lock, flags);