summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cx18
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@inria.fr>2022-02-10 21:42:16 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-02-22 09:41:12 +0100
commitad89e2e3ec30f54cff34a6b9d61b18612610001c (patch)
tree8290b11f3e73b75792646e929b0f0795711161d7 /drivers/media/pci/cx18
parentdrivers: meson: vdec: add VP9 support to GXM (diff)
downloadlinux-ad89e2e3ec30f54cff34a6b9d61b18612610001c.tar.xz
linux-ad89e2e3ec30f54cff34a6b9d61b18612610001c.zip
media: cx18: use GFP_KERNEL
Pci_driver probe functions aren't called with locks held and thus don't need GFP_ATOMIC. Use GFP_KERNEL instead. Problem found with Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/pci/cx18')
-rw-r--r--drivers/media/pci/cx18/cx18-driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx18/cx18-driver.c b/drivers/media/pci/cx18/cx18-driver.c
index 59497ba6bf1f..1be9672ae9d4 100644
--- a/drivers/media/pci/cx18/cx18-driver.c
+++ b/drivers/media/pci/cx18/cx18-driver.c
@@ -899,7 +899,7 @@ static int cx18_probe(struct pci_dev *pci_dev,
return -ENOMEM;
}
- cx = kzalloc(sizeof(*cx), GFP_ATOMIC);
+ cx = kzalloc(sizeof(*cx), GFP_KERNEL);
if (!cx)
return -ENOMEM;