media: dvb-usb: Replace GFP_ATOMIC with GFP_KERNEL
authorJia-Ju Bai <baijiaju1990@gmail.com>
Wed, 11 Apr 2018 03:23:49 +0000 (23:23 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 5 May 2018 11:37:36 +0000 (07:37 -0400)
commitfbfb3a75bd52249bbbbfe6e91b420cf2ae135ad5
treec31b857780bc2adbc86e2929f81975a8c9ff489a
parent5ebaf32866b649cc4e384725ce2742d705c064e6
media: dvb-usb: Replace GFP_ATOMIC with GFP_KERNEL

Despite never getting called from atomic context,
usb URB memory allocations use 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.

[mchehab+samsung@kernel.org: merged 3 similar patches into one]
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/dvb-usb/usb-urb.c