wifi: mwl8k: initialize cmd->addr[] properly
authorDan Carpenter <dan.carpenter@linaro.org>
Sat, 4 May 2024 11:38:15 +0000 (14:38 +0300)
committerKalle Valo <kvalo@kernel.org>
Tue, 7 May 2024 12:08:14 +0000 (15:08 +0300)
commit1d60eabb82694e58543e2b6366dae3e7465892a5
treeefa5eb0f94ca7f37ed2e8dfaceb3771f0049f9b5
parent9875b54762a7055bc59c436950c73dd112765e6c
wifi: mwl8k: initialize cmd->addr[] properly

This loop is supposed to copy the mac address to cmd->addr but the
i++ increment is missing so it copies everything to cmd->addr[0] and
only the last address is recorded.

Fixes: 22bedad3ce11 ("net: convert multicast list to list_head")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/b788be9a-15f5-4cca-a3fe-79df4c8ce7b2@moroto.mountain
drivers/net/wireless/marvell/mwl8k.c