From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qy0-f198.google.com ([209.85.221.198]:36251 "EHLO mail-qy0-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754113AbZGSD3E (ORCPT ); Sat, 18 Jul 2009 23:29:04 -0400 Received: by qyk36 with SMTP id 36so288946qyk.33 for ; Sat, 18 Jul 2009 20:29:03 -0700 (PDT) Message-ID: <4A6291C6.1090507@gmail.com> Date: Sat, 18 Jul 2009 23:23:50 -0400 From: Brian Johnson MIME-Version: 1.0 To: leandro Costantino CC: Jean-Francois Moine , Mauro Carvalho Chehab , linux-media@vger.kernel.org, Hans de Goede Subject: Re: [PATCH 0/2] gspca sn9c20x subdriver rev2 References: <1247863903-22125-1-git-send-email-brijohn@gmail.com> <20090718103522.18b87d68@free.fr> <4A61E816.8040908@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: > shouldn't there be a check when allocating jpg_hdr? or i am missing something? > > > sd->jpeg_hdr = kmalloc(JPEG_HDR_SZ, GFP_KERNEL); > jpeg_define(sd->jpeg_hdr, height, width, 0x21); > jpeg_set_qual(sd->jpeg_hdr, sd->quality); Yes probably there should be a check there. I'll one more minor revision with this plus the changes Jean-Francois mentioned previously in a bit. Brian Johnson