diff options
| author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-04-10 16:54:19 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2018-04-30 13:26:58 +0300 |
| commit | 6e1d8d1470b2c9335715f7d52e864f0bd91a5f59 (patch) | |
| tree | 134409eaa60efbf75041078a4f012277f0aa8711 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 7cce13954f0e6b16b4c18a3985387018f2e3e44e (diff) | |
| download | linux-6e1d8d1470b2c9335715f7d52e864f0bd91a5f59.tar.xz | |
net: wireless: b43legacy: Replace GFP_ATOMIC with GFP_KERNEL in dma_tx_fragment
dma_tx_fragment() is never called in atomic context.
dma_tx_fragment() is only called by b43legacy_dma_tx(), which is
only called by b43legacy_tx_work().
b43legacy_tx_work() is only set a parameter of INIT_WORK() in
b43legacy_wireless_init().
Despite never getting called from atomic context,
dma_tx_fragment() calls alloc_skb() with GFP_ATOMIC,
which does not sleep for allocation.
GFP_ATOMIC is not necessary and can be replaced with GFP_KERNEL,
which can sleep and improve the possibility of sucessful allocation.
This is found by a static analysis tool named DCNS written by myself.
And I also manually check it.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
