]> git.baikalelectronics.ru Git - kernel.git/commit
brcmsmac: Use kvmalloc() for ucode allocations
authorTakashi Iwai <tiwai@suse.de>
Thu, 13 Sep 2018 06:15:17 +0000 (08:15 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 20 Sep 2018 12:11:36 +0000 (15:11 +0300)
commita84e0032d3d4ca113953005e7f18eade48822c42
treeb354bedf00fab9311b52ea4dfe1e7944ca9aa4a5
parent2a03685fd6ebded581a7d5deb34a776a4dc6d75d
brcmsmac: Use kvmalloc() for ucode allocations

The ucode chunk might be relatively large and the allocation with
kmalloc() may fail occasionally.  Since the data isn't DMA-transferred
but by manual loops, we can use vmalloc instead of kmalloc.
For a better performance, though, kvmalloc() would be the best choice
in such a case, so let's replace with it.

Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1103431
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c