Message ID | 7b118f3d-99e0-1936-16d4-09151a5da006@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/usb/gspca/jl2005bcd.c b/drivers/media/usb/gspca/jl2005bcd.c index 17c7a953564c..23400ead1919 100644 --- a/drivers/media/usb/gspca/jl2005bcd.c +++ b/drivers/media/usb/gspca/jl2005bcd.c @@ -320,10 +320,8 @@ static void jl2005c_dostream(struct work_struct *work) u8 *buffer; buffer = kmalloc(JL2005C_MAX_TRANSFER, GFP_KERNEL | GFP_DMA); - if (!buffer) { - pr_err("Couldn't allocate USB buffer\n"); + if (!buffer) goto quit_stream; - } while (gspca_dev->present && gspca_dev->streaming) { #ifdef CONFIG_PM