Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4865839rwd; Tue, 30 May 2023 11:01:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6OAbYCf58K3JO8oP+bTNqEpWB9NvkivfMasN9TWett8ytTp5/hXEQTJjMWdQanZEouDpZe X-Received: by 2002:a17:90a:d991:b0:253:971b:dd1e with SMTP id d17-20020a17090ad99100b00253971bdd1emr3359165pjv.0.1685469671520; Tue, 30 May 2023 11:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685469671; cv=none; d=google.com; s=arc-20160816; b=Z1MLIyahub+t4tRwOZi/X+6CPuMUbZnGF9yaD9pyfgVelOGZDZAFfOTAyrgM4QjguY 9Y8PQh/8zoaPhES5MjdnETYU/cYTOkWuWc0DpACQVbMupo9ofzdfyeiReLvEqAZm0fw8 jtHtTzMuPF3WVFaRAie2wfZFAnUDprbuQEL7XlnUa9TSEDURLy3Ic3dgey0D+K9Ulaw+ b6lBOb/RVulGZp3WkQ5Oeu0PwxeQ/Oc/rYUSAi01RAlG2g9g66s0u+ugLzGxXMiWvr7z 9+URWTmcsDR6MU6WgnQ3TcppI8Xn6OEwuCn2SbfXwZPVZl0/UQNmlnZe8Q6z+RNV8UCZ V5ow== 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=bQWeIW5UM1/TmOZ5d0PazWxpqNEpHWV0GBbMfqmLLzI=; b=AwuO7FDkoDoL4/kzviQAJO/AfaTMD+/yxR0rS0CfgCmE7MGVjIYxNqrS+95ROu9Kmt SbMykLmbeZgAqKwekL3RoNue+lwmz0db5S6mBUwvR0WO3qU3eGkLK7Ip1enYH8cgQ7Rk IeV4eoI1qDDhWN1CYl+Fr37VUoTmvnYmD0/+Hp2df00dwk4aOHueYqcH4AIk2gU/V9tm rIek2k6E3FmmR08lFtreZRj9Zyl5gFkk08QjgLLoAeOEFUqo3wU6zuR3cpuFZxiYsnKx 5Dd/S8LPQXuoTGHlE2NFljp4QsatF9LrwPzREQk6oLLPd5Uhzlxoa10dMzU8YgdWsaLY 8O+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=QQIuJnNi; 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 7-20020a17090a1a4700b00255dfe30029si9165031pjl.72.2023.05.30.11.00.50; Tue, 30 May 2023 11:01:11 -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=QQIuJnNi; 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 S232005AbjE3RpS (ORCPT + 99 others); Tue, 30 May 2023 13:45:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231484AbjE3RpQ (ORCPT ); Tue, 30 May 2023 13:45:16 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE1D7D9; Tue, 30 May 2023 10:45:14 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126205198071.34.openmobile.ne.jp [126.205.198.71]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 899207EC; Tue, 30 May 2023 19:44:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1685468692; bh=jm2ldsqaGU1NMz+qnYWObPHh1yWtfkHkbJiCm2Lrw3o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QQIuJnNignz0Gld4KLd6aQR5alFgqgMSvp3snFqjSd2o/rV87ixUHHsuHyk9Rs3K9 UGUjUSZ1Tlbi45i5x8rMjxFCqghzD/DP6mtvBEw2+yD7yzHmmJm/WvxZ1sbWhBJc2E ZxjVWCBeOLNu6Nlg3zyDKJupvmnR43nVFEJGAovc= Date: Tue, 30 May 2023 20:45:13 +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: <20230530174513.GJ22516@pendragon.ideasonboard.com> References: <20230503075340.45755-1-y.oudjana@protonmail.com> <20230530174225.GI22516@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230530174225.GI22516@pendragon.ideasonboard.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 On Tue, May 30, 2023 at 08:42:30PM +0300, Laurent Pinchart wrote: > 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. The patch has actually been applied to the media fixes branch already :-) > > --- > > 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