Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3042166pxb; Tue, 12 Jan 2021 05:05:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwECyEvG5l+drs7hUGNWc5fLtPKCUdVN5lcX8ftSnlCQ6fLTpKrDfJ+QHjkBGRgAtN2a7EA X-Received: by 2002:a17:906:29cd:: with SMTP id y13mr576225eje.453.1610456719060; Tue, 12 Jan 2021 05:05:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610456719; cv=none; d=google.com; s=arc-20160816; b=QOreRH0svoISndGv7ED0p8kmzJWr7jTww+wyA2n8qrImg4aNvb3T7uvzlIvdTydtQ7 7AvdVfIDzUPjbsOufna8Iy5eyDPWjCe2EBRTm6xWpWqzMwazOGZlCn8o2mxllWWyTF4Q AmkzLejP/hsF/GgUI+EgqQfsWE2pWNOmN4nqKjUc6C7iF4J8wtsfBiaOOVHMGFztzzQW tebgBb55+CkX3A0ttvGU/cPtgb4gO8cOGGLk/k/ZjRRBP6qUPaKzy2ImQib0jah3J8lY 2cO6Zyqp2vVy0h/Kp3XZwzupS4t4FvRLlFAWBy+l3sfdDub/kPtJx2zlA3z9Zu0CJSjN CQSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :reply-to:from:references:cc:to:subject:dkim-signature; bh=J2J6BZTWwQx4QzVuUH5Rgwer+sOh7lqzApLRBBSTDMc=; b=lBTiAZ1arIDQ3iFruFVUmvGtUmgQtMaV90Q4IQK8ty+OawZuCLeGJJUTdxYaqjvan6 ag774bFzCuFDPX4tGnbnB5Ge7ydjgPpZ9oBoNV4IfTGAHPZKrPrMNyiMjAYeIGmTVt0C rG3MnyI/lU9QAWipoZuNaT4iSzIoRz42zt6yQQyHhMKdcfm1SmUNbO/s6d3Ck3Vi+4Mr TPK+oX2ab4IwdKGPG3Z+Wjbqw3nJITV4+xNv6BXT3fQnBmpJ7+VU+rlBC12ST1HZgvLV 0HUJH0++bDkoMjnBfwiZ1yQawWzRCg9kwWnWVTC9i5wkTB4+ZZBoULFNq5mS4Wa8ZO46 8bdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JvAs+447; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si1062856ejb.158.2021.01.12.05.04.38; Tue, 12 Jan 2021 05:05:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JvAs+447; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730790AbhALL6s (ORCPT + 99 others); Tue, 12 Jan 2021 06:58:48 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:44040 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727952AbhALL6s (ORCPT ); Tue, 12 Jan 2021 06:58:48 -0500 Received: from [192.168.0.20] (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 64EB83E; Tue, 12 Jan 2021 12:58:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1610452686; bh=mLDeM5JK2U+Cqu5JzAss8UQMs71epKmUAuHs1GCDLWw=; h=Subject:To:Cc:References:From:Reply-To:Date:In-Reply-To:From; b=JvAs+447Uw6Tc4r331n+6ZF/ZPPWCexdrDyKk6QW8aY3zqVYvGrHKmophDtmm141U YmQSgbHozr8L5Ao/tZmEc7TUy8plKrVSxeUZ/VILXChAtmDUvObmYTcpsKQLUZpsvz 3uEJ2wmLxIYMp/hFRGCULtg2uXgPtQuPl++ZNuWo= Subject: Re: [PATCH 1/9] media: ipu3-cio2: Do not zero reserved fields To: Ricardo Ribalda , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sakari Ailus References: <20210111145445.28854-1-ribalda@chromium.org> From: Kieran Bingham Reply-To: kieran.bingham+renesas@ideasonboard.com Organization: Ideas on Board Message-ID: <8d2ed1cd-ce4d-258c-942e-b0ba1677ea1a@ideasonboard.com> Date: Tue, 12 Jan 2021 11:58:03 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210111145445.28854-1-ribalda@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ricardo, On 11/01/2021 14:54, Ricardo Ribalda wrote: > Core code already clears reserved fields of struct > v4l2_pix_format_mplane, check: 4e1e0eb0e074 ("media: v4l2-ioctl: Zero > v4l2_plane_pix_format reserved fields"). > > Cc: Sakari Ailus > Signed-off-by: Ricardo Ribalda Reviewed-by: Kieran Bingham > --- > drivers/media/pci/intel/ipu3/ipu3-cio2.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio2.c b/drivers/media/pci/intel/ipu3/ipu3-cio2.c > index 36e354ecf71e..c5376de8cb8a 100644 > --- a/drivers/media/pci/intel/ipu3/ipu3-cio2.c > +++ b/drivers/media/pci/intel/ipu3/ipu3-cio2.c > @@ -1094,12 +1094,9 @@ static int cio2_v4l2_try_fmt(struct file *file, void *fh, struct v4l2_format *f) > mpix->pixelformat = fmt->fourcc; > mpix->colorspace = V4L2_COLORSPACE_RAW; > mpix->field = V4L2_FIELD_NONE; > - memset(mpix->reserved, 0, sizeof(mpix->reserved)); > mpix->plane_fmt[0].bytesperline = cio2_bytesperline(mpix->width); > mpix->plane_fmt[0].sizeimage = mpix->plane_fmt[0].bytesperline * > mpix->height; > - memset(mpix->plane_fmt[0].reserved, 0, > - sizeof(mpix->plane_fmt[0].reserved)); > > /* use default */ > mpix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; >