From: Julia Lawall Date: Thu, 10 Feb 2022 20:42:16 +0000 (+0100) Subject: media: cx18: use GFP_KERNEL X-Git-Tag: v6.1-rc5~1763^2~86^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad89e2e3ec30f54cff34a6b9d61b18612610001c;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/pci/cx18/cx18-driver.c b/drivers/media/pci/cx18/cx18-driver.c index 59497ba..1be9672 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;