Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp419705rwb; Mon, 28 Nov 2022 23:48:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf56mZAqserxS11l5WlebFnoty84ddVY/LPn8mC97ngd+dC2w818Zqq2Ea9z3uiiNUI2XTa0 X-Received: by 2002:aa7:c78b:0:b0:467:97e4:6339 with SMTP id n11-20020aa7c78b000000b0046797e46339mr50683881eds.381.1669708108975; Mon, 28 Nov 2022 23:48:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669708108; cv=none; d=google.com; s=arc-20160816; b=D8eYWzc/VSfmBSy1VmSvUXxP0U6Lb1LGnEXuwWt9jSfgOqlTWFFSh1dSyqCGsgjonY 3idFOnXwSShA71mC2YY7zYi/sk60RG7mTtbh/e8tUQ+Ereqbmnqku0EA+Tnoa5Bpgwxg wihTrwJ1dYQnGp6nfUus7w4J7phs+bonY0j42baAej6XUXIIxexhNSYoZTuoG2xOq4RG X+dIlLhLBM6ZU5FR8pH/Frq5ebb3ZCjd3GLTj43fFFSss+WsSpPtoox3nIe1ezoRHy6L yD8fonfmjI6JYQ8Why45KnrjReigy60eLGzZX1SV/jgYv/7GUaqKjkuHTdcqPTuCSTIE pWgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=bagBNQe9FjrtjpYhncnNtxRpmqK1jB+CF6KAvKZBwdw=; b=uxLdBz6pq5aNZ475YU2AYYfvyKYggWM5S7g9+erHLrYfzPgRT6ExB0XRMrxaVKS4l9 GYc+auJ/T0VY0m7NhX/xCiIhtDGfON4JMoI79S3hmPVSmaKLiiW97V91AsAfHIunWMh1 Uh9DJninwq32p+AcbChRBEJ1E5N2mm7YK1N350WDX+ehUL/N5Qntdq91VktFKMym90th aBBQ+dT5mrixMt40SRMvJqepByR68Jip1w20FjU5GhoKM1TFcB8CljMGTrfr0qQzThpG 6XagnKP8c9TaocsW1Hu8QRLDBHvSmX5BiH07VkpkYQZSZaFCPJShQqnBnCXwYkQPpM12 +e3g== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb12-20020a170907960c00b007ae814af66bsi13380241ejc.389.2022.11.28.23.48.05; Mon, 28 Nov 2022 23:48:28 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbiK2HeK (ORCPT + 83 others); Tue, 29 Nov 2022 02:34:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbiK2HeI (ORCPT ); Tue, 29 Nov 2022 02:34:08 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0885429BB; Mon, 28 Nov 2022 23:34:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9D059B811BE; Tue, 29 Nov 2022 07:34:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 471A9C433C1; Tue, 29 Nov 2022 07:34:04 +0000 (UTC) Message-ID: Date: Tue, 29 Nov 2022 08:34:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] media: platform: Fix missing error code in rzg2l_cru_start_streaming_vq() Content-Language: en-US To: Jiapeng Chong , mchehab@kernel.org Cc: p.zabel@pengutronix.de, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20221129031712.115354-1-jiapeng.chong@linux.alibaba.com> From: Hans Verkuil In-Reply-To: <20221129031712.115354-1-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Jiapeng Chong, Please repost with a proper subject line prefix: "media: rzg2l-cru:". The 'media: platform:' prefix suggests a media/platform-wide patch, not a patch for a single driver. Why is this so hard to do? Regards, Hans On 29/11/2022 04:17, Jiapeng Chong wrote: > Failed to allocate scratch buffer, add the error code '-ENOMEM' to the > return value 'ret'. > > drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c:676 rzg2l_cru_start_streaming_vq() warn: missing error code 'ret'. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3275 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c b/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c > index 9533e4069ecd..91b57c7c2e56 100644 > --- a/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c > +++ b/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c > @@ -673,6 +673,7 @@ static int rzg2l_cru_start_streaming_vq(struct vb2_queue *vq, unsigned int count > if (!cru->scratch) { > return_unused_buffers(cru, VB2_BUF_STATE_QUEUED); > dev_err(cru->dev, "Failed to allocate scratch buffer\n"); > + ret = -ENOMEM; > goto free_image_conv_irq; > } >