Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2929341rwb; Mon, 15 Aug 2022 14:15:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR7SbHuEpUAMUjtnRwgkTR3rcLVQQFmulDzct2MQWCHLrBDCX+TJjxroRKTRhnrJoR+JRkaW X-Received: by 2002:a65:4381:0:b0:429:8c34:535e with SMTP id m1-20020a654381000000b004298c34535emr2384652pgp.91.1660598103958; Mon, 15 Aug 2022 14:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598103; cv=none; d=google.com; s=arc-20160816; b=yB6TGRSMGBf4Q9/+/2IyzcRM6vJn2uPDGt3rgfPziRwdso1Xf2HIlIYtJ3b1wfsfsA R4GIJ8PufFWGLecnB3atbTJBbtuZjqBFRI+og1tziksnbwPKPkuH2SLzE3rUk5aaP9mP 57PgidUudR4/4U7Mf3PIJlQhx717t7kFT2BXzeG9FJOor6MyA/ObSZ+rtQmRsjWx3BN5 EyH/3bMzaUEOelyGZks/Rg4pYnrb/ieORbTAC+kqjs8S0VbPVicZlGsqwNKekxBZ+d5t W3D2hP6zntYpMZ7Mu5TY5+lzgOZaBmh4kRancPdYCUaTjqmZOhQIDmFvx65NOzf9dKZM HbhQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eAljx4fpqzKRF70bW72pqWTKGTp8tgac8ppA4MUKuOs=; b=bD5XNegvK4JJUYz6MpO28elDdqJ2b3shSn4EcS+w3hZ1WyCyBoBiMq1h1m8A7JvYTY aRNarw+j7SRITve5Tqxw7fuRC1RErAD78/i7CcvAfCQGzPpyMaKcc1ExwKjAtIYLP4oJ jjzxk8kLbAhSdAZBHhcWE7JH+V8lhwqUo78dLE/4DruLg6/7rOkfNo7DOc9ZHBlHextJ WhB5/u+VIAfynaL7JCkv/Xy6ZkYZwClaN56PbyQsXLHsmjD5rI5Sk6aJF5kqMsJExzhK NZxTL5bQ+UHYJpRBHr1jMxn2wo5Xa550GzuFzVTRHM0fPtDExSmhLBlJGFVKSrXGgjsT seiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ImV6FJHs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a655ac3000000b0041d35693195si11759204pgt.67.2022.08.15.14.14.52; Mon, 15 Aug 2022 14:15:03 -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 header.i=@linuxfoundation.org header.s=korg header.b=ImV6FJHs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344240AbiHOVDr (ORCPT + 99 others); Mon, 15 Aug 2022 17:03:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347105AbiHOVB2 (ORCPT ); Mon, 15 Aug 2022 17:01:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BAB7C9252; Mon, 15 Aug 2022 12:13:35 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 310A760F4E; Mon, 15 Aug 2022 19:13:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A2F1C433D6; Mon, 15 Aug 2022 19:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590814; bh=3wWrNwEv20y1udfhNosXeWvs1ZzpNC+If61us6+bLbM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ImV6FJHseIkKB/tbAZvlNQ8E7onN2wA7Q0qQzqK88ZsuwnmlWCd7jTeNIvDfYBeJ6 rkNdF2mhvFVFyczq4xgX+tpZ4kuXJi6BLDIZ6pieNdSAFpfMsC6mtqGOGY7s7ljQ1R +LYtJd3vsM9plFsVAHRLY+vNNxBOrpHktHM1r/Jg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Jian Zhang , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.18 0380/1095] media: driver/nxp/imx-jpeg: fix a unexpected return value problem Date: Mon, 15 Aug 2022 19:56:19 +0200 Message-Id: <20220815180445.407230791@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Jian Zhang [ Upstream commit 5b304046a81eda221b5d06a9c62f7b5e45530fa5 ] In function mxc_jpeg_probe(), when devm_clk_get() fail, the return value will be unexpected, and it should be the devm_clk_get's error code. Fixes: 4c2e5156d9fa6 ("media: imx-jpeg: Add pm-runtime support for imx-jpeg") Reported-by: Hulk Robot Signed-off-by: Jian Zhang Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c index c287eb789fe6..55c4b29d3e4e 100644 --- a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c +++ b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c @@ -2121,12 +2121,14 @@ static int mxc_jpeg_probe(struct platform_device *pdev) jpeg->clk_ipg = devm_clk_get(dev, "ipg"); if (IS_ERR(jpeg->clk_ipg)) { dev_err(dev, "failed to get clock: ipg\n"); + ret = PTR_ERR(jpeg->clk_ipg); goto err_clk; } jpeg->clk_per = devm_clk_get(dev, "per"); if (IS_ERR(jpeg->clk_per)) { dev_err(dev, "failed to get clock: per\n"); + ret = PTR_ERR(jpeg->clk_per); goto err_clk; } -- 2.35.1