Skip to contentSkip to conversation

as102: avoid GFP_ATOMIC

PATCH New Oliver Neukum 1 participant 1 message May 17, 2022 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 as102: avoid GFP_ATOMIC

No need for GFP_ATOMIC during probe()

---
 drivers/media/usb/as102/as102_usb_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/as102/as102_usb_drv.c +1 -1
index 50419e8ae56c..3c8b35dc0266 100644
@@ -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;
Signature · 1 line
2.35.3