summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorHariprasad Kelam <hariprasad.kelam@gmail.com>2019-06-19 07:27:43 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-20 14:43:02 +0200
commit6254acded763af1904204677d765e6a46090da86 (patch)
treeb3f2942763fd692562d6cedc76f3079f26fb765b /tools/perf/scripts/python/net_dropmonitor.py
parent35659639671835101c5a50afb270a5e63cc23dd0 (diff)
downloadlinux-6254acded763af1904204677d765e6a46090da86.tar.gz
linux-6254acded763af1904204677d765e6a46090da86.zip
staging: rtl8723bs: os_dep: ioctl_linux: make use of kzalloc
This patch is a cleanup which replaces rtw_malloc(wep_total_len) with kzalloc() and removes the memset(). The rtw_malloc() does GFP_ATOMIC allocations when in_atomic() is true. But as the comments for in_atomic() describe, the in_atomic() check should not be used in driver code. The in_atomic() check is not accurate when preempt is disabled. In this code we are not in IRQ context and we are not holding any spin_locks so GFP_KERNEL is safe. Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> ---- changes in v2: Replace rtw_zmalloc with kzalloc changes in v3: Add proper changelog Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions