Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 511CEC433EF for ; Mon, 22 Nov 2021 12:33:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239551AbhKVMgF (ORCPT ); Mon, 22 Nov 2021 07:36:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239482AbhKVMf7 (ORCPT ); Mon, 22 Nov 2021 07:35:59 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB053C061714; Mon, 22 Nov 2021 04:32:52 -0800 (PST) Received: from pendragon.ideasonboard.com (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2F2DD1B40; Mon, 22 Nov 2021 13:32:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1637584371; bh=QKRF7G2PcQLgRH2yZC8hCKafyAlgqBTJ7BddEaQGc1E=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=qS6myqc7tBnmxkRabheB/pbBFG1CvdypxyZU083SYDCMcGnx/xbU2MTszHfaK2ib/ BFgsuQqmYx2bcd45adPsHML++9+DFzK0RLpQ2e9+bK7rlIa4AHJfabha+s3LvAu43S 14dNLSOSv6lkuIXLuqtnqfm+tuVs9UuMkwDyywTs= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20211120122321.20253-1-kmcopper@danwin1210.me> References: <20211120122321.20253-1-kmcopper@danwin1210.me> Subject: Re: [PATCH] media: rockchip/rga: do proper error checking in probe From: Kieran Bingham Cc: Kyle Copperfield , Dragan Simic , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Dan Carpenter , Ezequiel Garcia , Heiko Stuebner , Kyle Copperfield , Mauro Carvalho Chehab Date: Mon, 22 Nov 2021 12:32:48 +0000 Message-ID: <163758436861.2984710.7560336354232633119@Monstersaurus> User-Agent: alot/0.10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Kyle Copperfield (2021-11-20 12:23:02) > The latest fix for probe error handling contained a typo that causes > probing to fail with the following message: >=20 > rockchip-rga: probe of ff680000.rga failed with error -12 >=20 > This patch fixes the typo. >=20 > Fixes: e58430e1d4fd (media: rockchip/rga: fix error handling in probe) > Reviewed-by: Dragan Simic > Signed-off-by: Kyle Copperfield > --- > drivers/media/platform/rockchip/rga/rga.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/pl= atform/rockchip/rga/rga.c > index 6759091b15e0..d99ea8973b67 100644 > --- a/drivers/media/platform/rockchip/rga/rga.c > +++ b/drivers/media/platform/rockchip/rga/rga.c > @@ -895,7 +895,7 @@ static int rga_probe(struct platform_device *pdev) > } > rga->dst_mmu_pages =3D > (unsigned int *)__get_free_pages(GFP_KERNEL | __GFP_ZERO,= 3); > - if (rga->dst_mmu_pages) { > + if (!rga->dst_mmu_pages) { Ouch, that indeed looks like it was unhelpful.. Reviewed-by: Kieran Bingham > ret =3D -ENOMEM; > goto free_src_pages; > } > --=20 > 2.34.0 >