]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite237572fc312b216579eb72edab4d5a7b84e82de
treec31b857780bc2adbc86e2929f81975a8c9ff489a
parentad0c71f8e5147c0ac21ff41ea232b3a2b31b3bf3
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