Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3342204pxb; Mon, 18 Apr 2022 23:38:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIIMCINmagiGOeJQ9KsPXcpLUXHY09cmcly/cP4xp/SSgDIzyZhCfPHCDeMcgx5Aq5kad5 X-Received: by 2002:a05:6a02:18b:b0:399:365e:f09c with SMTP id bj11-20020a056a02018b00b00399365ef09cmr13456933pgb.238.1650350291524; Mon, 18 Apr 2022 23:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650350291; cv=none; d=google.com; s=arc-20160816; b=bCyrZzdEoxxH0ikMxoiX6W4FAIN1WNxBgop2ZYoXhNR3GrH+ZbPZujFtKONmeDxHkf +xh1w2Fzj2vDPHvlLNz2RMLFwwrKS/6tiCCU8foZbLkm+59JFnpwQugC1um4+KeqAiIq 9LlEzLQ1dgMVDy4iXm7touEcGpzP04bQTExsJ3pORfznehmUAm5CzVl7tXUXwFnOnEWT rPX2NI0kuxhYT+9WHrngvpGPzC4yNgoLOHXJF9JYTJ/hsr7BgrSvPkyxVhHUm8M/HdnH GW9IEpXmnwlPO8fSXWTTIPgxnkUcd9KvTaLlnbtr059g0JyUoek4tJR7G4LNc86YefyE DtOg== 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=AQM5EYlOjdcnR3rEKCYZSyO7R79jhtOPjpLZ+gQXqV8=; b=CiyAkRlkzvtKxtxNQJHIGhUzS7JZ4B22Pf6zVG85utDpEsFlBtWPEfwP6/nu3k0gYl PUNFLMKBjTxhedldMkV/HfwkCS/d77dSvH/8p05aBuv9nQTKTQS6BL9L/8oVvAKHbeYc cYlszZzuURFBIg8qMqAXzjJiKtWHCFwQKxnciU1q+w6aNnAt3pzsruWOq/4LFKwArCSs VTyDrh1vwGO4iEz4TGd2VYjMIOIUV3HQmW9tHoTxGVSrHrBV5P9Tu4lCsPDjgxBYPcgW v2meuo/lyUyWvMvqxw3lqltJfKb8zTG+tItLLgpgb9gZ3xnHICf/hPWs2DhZ9SpsGyWk awUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W+PLHkA+; 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 n18-20020a170903111200b00153b2d16529si12357800plh.305.2022.04.18.23.37.56; Mon, 18 Apr 2022 23:38: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 header.i=@linuxfoundation.org header.s=korg header.b=W+PLHkA+; 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 S238501AbiDRMXx (ORCPT + 99 others); Mon, 18 Apr 2022 08:23:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238743AbiDRMWr (ORCPT ); Mon, 18 Apr 2022 08:22:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98EB41EEC3; Mon, 18 Apr 2022 05:18:10 -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 ams.source.kernel.org (Postfix) with ESMTPS id 50AEEB80ED6; Mon, 18 Apr 2022 12:18:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94616C385A1; Mon, 18 Apr 2022 12:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284288; bh=DC7RGW7TlXPwWdtO/BTt0iavJEYKJ2Rg0B/NHcdSQzk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W+PLHkA+YlUb2G+P1BOSa+1/IqZcEtCZjXvnGFEo21pTgmeolkxGcnVdUpKol9DCo fMcZ4uE9YBVVZq+6nEBkD/qhskNfX9ixZB080mflk/PNkrJhHpDeB1vbnIOw4GS9FK 0TkJuipba90+u3YMzTc+Xz5BNFytEmnsu0jJxjjc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dragan Simic , Kyle Copperfield , Kieran Bingham , Dan Carpenter , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.17 064/219] media: rockchip/rga: do proper error checking in probe Date: Mon, 18 Apr 2022 14:10:33 +0200 Message-Id: <20220418121207.390409830@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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: Kyle Copperfield [ Upstream commit 6150f276073a1480030242a7e006a89e161d6cd6 ] The latest fix for probe error handling contained a typo that causes probing to fail with the following message: rockchip-rga: probe of ff680000.rga failed with error -12 This patch fixes the typo. Fixes: e58430e1d4fd (media: rockchip/rga: fix error handling in probe) Reviewed-by: Dragan Simic Signed-off-by: Kyle Copperfield Reviewed-by: Kieran Bingham Reviewed-by: Dan Carpenter Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/rockchip/rga/rga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c index 4de5e8d2b261..3d3d1062e212 100644 --- a/drivers/media/platform/rockchip/rga/rga.c +++ b/drivers/media/platform/rockchip/rga/rga.c @@ -892,7 +892,7 @@ static int rga_probe(struct platform_device *pdev) } rga->dst_mmu_pages = (unsigned int *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, 3); - if (rga->dst_mmu_pages) { + if (!rga->dst_mmu_pages) { ret = -ENOMEM; goto free_src_pages; } -- 2.35.1