Thu, May 21, 2020 at 01:45:22PM CEST, liuhangbin(a)gmail.com wrote:
We should use memcpy to copy the data to ctx->hwaddr.
Use ctx->hwaddr = hwaddr will change the ctx->hwaddr to
a wrong address and cause the team hwaddr unable to be updated.
Reported-by: Li Liang <liali(a)redhat.com>
Suggested-by: Xin Long <lucien.xin(a)gmail.com>
Fixes: 9ca6bf9 ("teamd: update ctx->hwaddr after setting team dev to new
hwaddr")
Signed-off-by: Hangbin Liu <liuhangbin(a)gmail.com>
applied, thanks!