mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
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>
This commit is contained in:
parent
9bc92332cc
commit
30f7bc001a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user