diff options
Diffstat (limited to 'drivers/media/video/gspca/jeilinj.c')
-rw-r--r-- | drivers/media/video/gspca/jeilinj.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/jeilinj.c b/drivers/media/video/gspca/jeilinj.c index dbfa3ed6e8ef..a11c97ebeb0f 100644 --- a/drivers/media/video/gspca/jeilinj.c +++ b/drivers/media/video/gspca/jeilinj.c | |||
@@ -312,6 +312,8 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
312 | 312 | ||
313 | /* create the JPEG header */ | 313 | /* create the JPEG header */ |
314 | dev->jpeg_hdr = kmalloc(JPEG_HDR_SZ, GFP_KERNEL); | 314 | dev->jpeg_hdr = kmalloc(JPEG_HDR_SZ, GFP_KERNEL); |
315 | if (dev->jpeg_hdr == NULL) | ||
316 | return -ENOMEM; | ||
315 | jpeg_define(dev->jpeg_hdr, gspca_dev->height, gspca_dev->width, | 317 | jpeg_define(dev->jpeg_hdr, gspca_dev->height, gspca_dev->width, |
316 | 0x21); /* JPEG 422 */ | 318 | 0x21); /* JPEG 422 */ |
317 | jpeg_set_qual(dev->jpeg_hdr, dev->quality); | 319 | jpeg_set_qual(dev->jpeg_hdr, dev->quality); |