]> git.baikalelectronics.ru Git - kernel.git/commit
media: usb: hackrf: Replace GFP_ATOMIC with GFP_KERNEL
authorJia-Ju Bai <baijiaju1990@gmail.com>
Mon, 30 Jul 2018 09:33:20 +0000 (05:33 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 2 Aug 2018 23:16:17 +0000 (19:16 -0400)
commit77c5fc1559a9fd90787bab4180379384a3db9c0e
tree50c6ab7f8534f3e1eaaf1370415b35c089522caa
parente9ae51326b89cc40bfb8a7d67a13e3a58e8d6c10
media: usb: hackrf: Replace GFP_ATOMIC with GFP_KERNEL

hackrf_submit_urbs(), hackrf_alloc_stream_bufs() and hackrf_alloc_urbs()
are never called in atomic context.
They call usb_submit_urb(), usb_alloc_coherent() and usb_alloc_urb()
with GFP_ATOMIC, which is not necessary.
GFP_ATOMIC can be replaced with GFP_KERNEL.

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/hackrf/hackrf.c