Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2012457rwb; Wed, 30 Nov 2022 00:44:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Fklausr51XQysuhWRnZ3IiVrB1mPV0ncZ/5SjRAvb4EbMgOt8fy8x2E7EEd0ZnzQ8dTDQ X-Received: by 2002:a17:906:914f:b0:7bc:4d3e:66dd with SMTP id y15-20020a170906914f00b007bc4d3e66ddmr22457526ejw.624.1669797861131; Wed, 30 Nov 2022 00:44:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669797861; cv=none; d=google.com; s=arc-20160816; b=CX99ds8sbpAu82xWzlelcwGXCYnmgq4SghImZM1Ppjysf9Uss2IWgeMQSxIhpN31Pt l0d4C1jVz/zQPNhy395G7vlG0JQLH3q47FVazK4zPRKInYwbEsMTllQjbxE/NDS+RWva LqrR3H8uxamOvYRxr+UD0PMnhZijOimGIVu0WGGlgVDn7EGPc4vPuBu2oVxV21N21pkI ZgcRWXxCvItMxKPLVreh8T5z5UxbZc29Ll7r2myDCCpjS5Fbz86R1KcFRka+BpICVgUF v0QNlvsJXooIngBa1IQYfduGHAPeXbVrdFhKBcJ8PXSvyD+3Sa1tqFNobAq8n0Nn85p+ fqaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HRd/UGXq2ENgx3QTrBCAM4PS5C1zw64XtYvnNj2Yx/0=; b=G8jpKrC9LgbcJbi0S2p9VQ36SgLAmQjYDmUV0kMiCBjD4ptu8SIVgZ7ZMZ/6JGjNI2 XSLNXGN7fogYOWqD++Y7lS/i38AGKfVPd/iTZxzUlWQV1+o+Uu95AfA4JkgJ+/z2y5Pn 7pTwAzSvTppkE0rVQH7Kg5p0bAzQ99zZQ45OJ5OkPJfVEkSk+7PNmUqzKxye0dKSdwHY mQQi+6bX7yMq6ENE453Bc7WYCVJO+oX5QgANO0lN2C16DYD6R2TiWJ/v3KOFnW6TvN/k BndH6v5XQSBqtY0Yuvh8qvPXWuRkHJFxxwP+jcS9I1d/anMa7vDmpAvl0jYX2qjf8xNE /FxQ== 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=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he41-20020a1709073da900b0073d8e4e8c77si874610ejc.1005.2022.11.30.00.44.00; Wed, 30 Nov 2022 00:44:21 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233824AbiK3HUa (ORCPT + 84 others); Wed, 30 Nov 2022 02:20:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbiK3HU2 (ORCPT ); Wed, 30 Nov 2022 02:20:28 -0500 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 874712A24D; Tue, 29 Nov 2022 23:20:26 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VW1oelD_1669792816; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VW1oelD_1669792816) by smtp.aliyun-inc.com; Wed, 30 Nov 2022 15:20:23 +0800 From: Jiapeng Chong To: mchehab@kernel.org Cc: p.zabel@pengutronix.de, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH v2] media: rzg2l-cru: Fix missing error code in rzg2l_cru_start_streaming_vq() Date: Wed, 30 Nov 2022 15:20:14 +0800 Message-Id: <20221130072014.95092-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 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 --- Changes in v2: -Modified the subject line to "media: rzg2l-cru:". 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; } -- 2.20.1.7.g153144c