From patchwork Mon Nov 17 22:50:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sensoray-dev X-Patchwork-Id: 5324541 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 88464C11AC for ; Mon, 17 Nov 2014 23:51:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 867ED20127 for ; Mon, 17 Nov 2014 23:51:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A084220122 for ; Mon, 17 Nov 2014 23:51:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751515AbaKQXv0 (ORCPT ); Mon, 17 Nov 2014 18:51:26 -0500 Received: from gateway14.websitewelcome.com ([67.18.68.2]:51676 "EHLO gateway14.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297AbaKQXv0 (ORCPT ); Mon, 17 Nov 2014 18:51:26 -0500 X-Greylist: delayed 2001 seconds by postgrey-1.27 at vger.kernel.org; Mon, 17 Nov 2014 18:51:26 EST Received: by gateway14.websitewelcome.com (Postfix, from userid 5007) id 2C37ADF90B994; Mon, 17 Nov 2014 16:50:51 -0600 (CST) Received: from cm1.websitewelcome.com (cm.websitewelcome.com [192.185.0.102]) by gateway14.websitewelcome.com (Postfix) with ESMTP id 24D0FDF90B973 for ; Mon, 17 Nov 2014 16:50:51 -0600 (CST) Received: from gator3086.hostgator.com ([50.87.144.121]) by cm1.websitewelcome.com with id Gmqp1p01R2dN8Wi01mqqNu; Mon, 17 Nov 2014 16:50:51 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sensoray.com; s=default; h=Message-Id:Date:Subject:Cc:To:From; bh=5KM0wuCvMBTDcEgtUo5FVfDzK94Afb6Cn+iqcEHRhWo=; b=U5Q0AJGUDKwZF0ya/nftpu2JtcEzJ483oN4N63RO/XElygoyfQ0cejZfVDcRQSoQvw2LZfENveFn438g5kM6OoGA7Ikv5K/ihwFkXxhPi9fBEhyAz9I8HLyLNbQXWCI2my1+Mi/Yqw1VmSEnJohXu2wF6/49QnHVqolCd1nVAHg=; Received: from [50.43.67.108] (port=59122 helo=localhost.localdomain) by gator3086.hostgator.com with esmtpa (Exim 4.82) (envelope-from ) id 1XqV8B-0002DG-V6; Mon, 17 Nov 2014 16:50:48 -0600 From: Dean Anderson To: linux-media@vger.kernel.org Cc: mchehab@redhat.com, hverkuil@xs4all.nl, Dean Anderson Subject: [PATCH] [media] s2255drv: fix payload size for JPG, MJPEG Date: Mon, 17 Nov 2014 14:50:36 -0800 Message-Id: <1416264636-8620-1-git-send-email-linux-dev@sensoray.com> X-Mailer: git-send-email 1.9.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3086.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sensoray.com X-BWhitelist: no X-Source-IP: 50.43.67.108 X-Exim-ID: 1XqV8B-0002DG-V6 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (localhost.localdomain) [50.43.67.108]:59122 X-Source-Auth: dean@sensoray.com X-Email-Count: 11 X-Source-Cap: c2Vuc29yYXk7c2Vuc29yYXk7Z2F0b3IzMDg2Lmhvc3RnYXRvci5jb20= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Dean Anderson --- drivers/media/usb/s2255/s2255drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/s2255/s2255drv.c b/drivers/media/usb/s2255/s2255drv.c index a56a05b..82014bb 100644 --- a/drivers/media/usb/s2255/s2255drv.c +++ b/drivers/media/usb/s2255/s2255drv.c @@ -635,7 +635,7 @@ static void s2255_fillbuff(struct s2255_vc *vc, break; case V4L2_PIX_FMT_JPEG: case V4L2_PIX_FMT_MJPEG: - buf->vb.v4l2_buf.length = jpgsize; + vb2_set_plane_payload(&buf->vb, 0, jpgsize); memcpy(vbuf, tmpbuf, jpgsize); break; case V4L2_PIX_FMT_YUV422P: