Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4868322rwd; Tue, 30 May 2023 11:02:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6R9XONuSM/c3UEPMSyzhE3Gd7KEUzYJawvqiyP0M8QuJZtEtukFFTKYU4PFsmNWKpYzY77 X-Received: by 2002:a05:6a00:2d0b:b0:64f:3fc8:5d3a with SMTP id fa11-20020a056a002d0b00b0064f3fc85d3amr3470133pfb.16.1685469763180; Tue, 30 May 2023 11:02:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685469763; cv=none; d=google.com; s=arc-20160816; b=aBSs/EojzD5AQu+y7v5Z2BaSFlAuQWWz8wkOV+vrNtYCG1AqbWD5rZ75d8mmqgGsqM K+QBPGt0NrOQQTefSQ1GsrW1s46yqdUy/7PtinokPTSXfNrzcJi57fTO31VyyIeDe27d bMH/RwcrwZyL+bXLUQ8KKSSHzBNgftHsDtihG9sVA/yzkPBfGCy0OhJHrEzKJMFonTvL 24qokuaTrUUcoiBzxZBMUXWy2BzHZPdrQDdWpORS0qXkYsEJ+nrifc/dm5yjXQ9H8bmz NsBbNC+5lD0Gh6k+IbrIUL+/lsg8pJu4tUp9sugpPmHKxzgj1PDlOu07xy86On6ICPzH 8KXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JbROOA1Ef4TkkTJ1TKgPdgUIiRxKMybW2xqz1536epU=; b=MnytNBXtZqDzHgryI8zWg3kgZnApmCUOG3C1HFbXfZrhlptrAojkeEoePziaTP1aCJ 4f2gCnD1EBKN7A4FvXvm93gR1+D2SHMw+Ro2QUrEunqnjBsHQaD/pdYEeD+DhW5DvQ9t 952K+sjIhnvDpiFMgAaEZNnBJ4SQ0WeXvNGVEkeoo6NoKgI8Lwx4IxYPzAMdQzJq/0fb kEgmGJY1QhHuYC0sn4K6CvQ+zm/cTytcUec6nCkCQhplqqKIejJOt8VuLBrO4laT7ICW SilF5EZEZizIteaDZGH94Tg36avpcHtWUoHJE4IVKhahx8gnFJQDhC+DqDfbKfAWoQOQ xYXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=uuNskoDU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f28-20020aa79d9c000000b0063b52b9a8f5si2080861pfq.267.2023.05.30.11.02.28; Tue, 30 May 2023 11:02:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=uuNskoDU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231221AbjE3Rm3 (ORCPT + 99 others); Tue, 30 May 2023 13:42:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbjE3Rm2 (ORCPT ); Tue, 30 May 2023 13:42:28 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D07A4B2; Tue, 30 May 2023 10:42:26 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126205198071.34.openmobile.ne.jp [126.205.198.71]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CD80A7EC; Tue, 30 May 2023 19:42:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1685468524; bh=CaKTnHZCM+2tWEEUW3VhPnjGo68JAAX4FhkKXSxl8lE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uuNskoDUgqj2a39oi2O7SRQQvVV1TDbHqI0gq4PnV9NnU8jOPTLtC1rdj5OK3BZT8 GcN9Kk1wOFGv9DvsWrOAjL0uSksJp0VP3qIl9WtoEf0BeLr9qLQBlOlnLfYjl60VUt XWL4X3gVaIZEpRAl/eSBnBHCtzAfojry1i7uO5Rs= Date: Tue, 30 May 2023 20:42:25 +0300 From: Laurent Pinchart To: Yassine Oudjana Cc: Robert Foss , Todor Tomov , Bryan O'Donoghue , Andy Gross , Bjorn Andersson , Konrad Dybcio , Mauro Carvalho Chehab , Tomi Valkeinen , Sakari Ailus , Shuah Khan , Lad Prabhakar , Yassine Oudjana , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: camss: camss-video: Don't zero subdev format again after initialization Message-ID: <20230530174225.GI22516@pendragon.ideasonboard.com> References: <20230503075340.45755-1-y.oudjana@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230503075340.45755-1-y.oudjana@protonmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yassine, Thank you for the patch. On Wed, May 03, 2023 at 10:53:40AM +0300, Yassine Oudjana wrote: > From: Yassine Oudjana > > In an earlier commit, setting the which field of the subdev format struct > in video_get_subdev_format was moved to a designated initializer that also > zeroes all other fields. However, the memset call that was zeroing the > fields earlier was left in place, causing the which field to be cleared > after being set in the initializer. > > Remove the memset call from video_get_subdev_format to avoid clearing the > initialized which field. > > Fixes: ecefa105cc44 ("media: Zero-initialize all structures passed to subdev pad operations") > Signed-off-by: Yassine Oudjana Reviewed-by: Laurent Pinchart This is a regression fix, I'll send a pull request right away. > --- > drivers/media/platform/qcom/camss/camss-video.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/camss/camss-video.c b/drivers/media/platform/qcom/camss/camss-video.c > index 898f32177b12..8640db306026 100644 > --- a/drivers/media/platform/qcom/camss/camss-video.c > +++ b/drivers/media/platform/qcom/camss/camss-video.c > @@ -353,7 +353,6 @@ static int video_get_subdev_format(struct camss_video *video, > if (subdev == NULL) > return -EPIPE; > > - memset(&fmt, 0, sizeof(fmt)); > fmt.pad = pad; > > ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); -- Regards, Laurent Pinchart