commit | bbffa4223299c18e9886e423f80909b560713e5e | [log] [tgz] |
---|---|---|
author | Hangbin Liu <liuhangbin@gmail.com> | Thu May 21 19:45:22 2020 +0800 |
committer | Jiri Pirko <jiri@mellanox.com> | Fri May 22 17:01:28 2020 +0200 |
tree | fc31bb675c72a528e1126f0ef3b89eb70830b979 | |
parent | 5ba661e5b1378297f60c5567ab0c9b499aa773f0 [diff] |
teamd: fix ctx->hwaddr value assignment 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@redhat.com> Suggested-by: Xin Long <lucien.xin@gmail.com> Fixes: 9ca6bf9 ("teamd: update ctx->hwaddr after setting team dev to new hwaddr") Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com>