mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
driver/net/benet: fix be_cmd_multicast_set() memcpy bug
Regarding benet be_cmd_multicast_set() function, now using netdev_for_each_mc_addr() helper for mac address copy, but when copying to req->mac[] did not increase of the index. Cc: Sathya Perla <[email protected]> Cc: Subbu Seetharaman <[email protected]> Cc: Sarveshwar Bandi <[email protected]> Cc: Ajit Khaparde <[email protected]> Signed-off-by: Joe Jin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
e8d34a884e
commit
408cc293c2
1 changed files with 1 additions and 1 deletions
|
|
@ -1235,7 +1235,7 @@ int be_cmd_multicast_set(struct be_adapter *adapter, u32 if_id,
|
|||
|
||||
i = 0;
|
||||
netdev_for_each_mc_addr(ha, netdev)
|
||||
memcpy(req->mac[i].byte, ha->addr, ETH_ALEN);
|
||||
memcpy(req->mac[i++].byte, ha->addr, ETH_ALEN);
|
||||
} else {
|
||||
req->promiscuous = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue