]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
media: pci: ivtv: Replace GFP_ATOMIC with GFP_KERNEL
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 03:44:24 +0000 (23:44 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 27 Jul 2018 12:15:55 +0000 (08:15 -0400)
commit5bfffa0c86915e5afbfe56d9790457b2a9887f2d
tree7e8436afda5102623083b55321659183fe2644ed
parent9d08ba6de0c52d87b1f9619df3f6faacde2134b7
media: pci: ivtv: Replace GFP_ATOMIC with GFP_KERNEL

ivtv_probe() and ivtvfb_init_card() are never called in atomic context.
They call kzalloc() 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/ivtv/ivtv-driver.c
drivers/media/pci/ivtv/ivtvfb.c