brcmfmac: Avoid GFP_ATOMIC when GFP_KERNEL is enough
A workqueue is not atomic, so constraints can be relaxed here. GFP_KERNEL can be used instead of GFP_ATOMIC. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/b6e619415db4ee5de95389280d7195bb56e45f77.1618860716.git.christophe.jaillet@wanadoo.fr
This commit is contained in:
parent
130f634da1
commit
7a4fc7154e
@ -151,7 +151,7 @@ static void _brcmf_set_multicast_list(struct work_struct *work)
|
||||
/* Send down the multicast list first. */
|
||||
cnt = netdev_mc_count(ndev);
|
||||
buflen = sizeof(cnt) + (cnt * ETH_ALEN);
|
||||
buf = kmalloc(buflen, GFP_ATOMIC);
|
||||
buf = kmalloc(buflen, GFP_KERNEL);
|
||||
if (!buf)
|
||||
return;
|
||||
bufp = buf;
|
||||
|
Loading…
Reference in New Issue
Block a user