1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

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>
This commit is contained in:
Julia Lawall 2022-02-10 21:42:16 +01:00 committed by Hans Verkuil
parent 11c778182a
commit ad89e2e3ec

View file

@ -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;