summaryrefslogtreecommitdiff
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2022-05-17 14:10:49 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2024-04-29 14:07:00 +0300
commit30f7bc001a8a239e1f50cf4c6560f3677c041be1 (patch)
tree677286f146b3e001eb9c48f1ee2d41ebcb00cdc6 /drivers/media/usb
parent9bc92332cc3f06fda3c6e2423995ca2da0a7ec9a (diff)
downloadlinux-30f7bc001a8a239e1f50cf4c6560f3677c041be1.tar.xz
media: as102: avoid GFP_ATOMIC
No need for GFP_ATOMIC during probe() Link: https://lore.kernel.org/linux-media/20220517111049.25611-1-oneukum@suse.com Signed-off-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r--drivers/media/usb/as102/as102_usb_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/as102/as102_usb_drv.c b/drivers/media/usb/as102/as102_usb_drv.c
index 6b380144d6c2..e0ef66a522e2 100644
--- a/drivers/media/usb/as102/as102_usb_drv.c
+++ b/drivers/media/usb/as102/as102_usb_drv.c
@@ -259,7 +259,7 @@ static int as102_alloc_usb_stream_buffer(struct as102_dev_t *dev)
for (i = 0; i < MAX_STREAM_URB; i++) {
struct urb *urb;
- urb = usb_alloc_urb(0, GFP_ATOMIC);
+ urb = usb_alloc_urb(0, GFP_KERNEL);
if (urb == NULL) {
as102_free_usb_stream_buffer(dev);
return -ENOMEM;