Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp932453pxu; Wed, 16 Dec 2020 19:58:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwalIirVmexn6yCgIPJ6rrGiB5XPFFXECiyanPBxWifmzFcX8/HeCSb2zNr+hx4H/wvYq1X X-Received: by 2002:a05:6402:139a:: with SMTP id b26mr36933342edv.47.1608177521999; Wed, 16 Dec 2020 19:58:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608177521; cv=none; d=google.com; s=arc-20160816; b=lxkFOSTY021K1AiJvyQrUdZOnwwzXy90MWxCwXsUpRUYr6ZNxlTSS4IrIT+dubNIBl aHLO/JaifZem2UEgpOlbLsfQsbKPvZwDLXyp45vnRPws99YrrY9EtSUT7xrVdYxE7AVR y0h264JsfcNB3X7ijbtW4yUSBd1DrSFvt29oJpAWe74AZwok/XH1x+W6eg4B05yvZdgN FeDy57aSqL4H0ybhJHasZ+MKiReGZ1z20OgTIn6vahrx7bzZ5sGbkyMwu5xACzR5sd2z X4CA9B/PPiD63T/G1eb0ZeNxg5uLtUIMyS8zQh+WdiX+/uV7lbjoI59sNUBb+c6fO7T6 JG3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W79VBvJOW3kqJIdH9c9aGdHvqUnx3G50tktmXZUGKgw=; b=0V2hU8BJHzDfnSlAtey83xBiZKZpAqO5FUCOU9G14ZK/1ixzBUe43BPD2IiXUCvMUP Ug1EvR9hob8bCUgQ5tZ4d3RU/YiAULSgIQbv7yPlFPvDjellmhtrp8btRDeMbIvuGzfq K2L/lYXXwADSpqirUfGIftyu/LqNsReEN3rzrl4pFnhXT4Qh0cFe1l3gGlpG1z2vFrRn t2NNR/On4RkFZ5NIX8M4gi5pcaRmXt65EvVRQ1f43ZrKoPfhkwHdYRpwNBpaEelUstcQ bP5V+A4OTyCHrxfjHEsZ4GNa9+RxogMtDbqTs1WMS5ObvPflLUro9fxS9safFz+5uO/+ oFqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=RJZX2LfE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si1916929ejt.370.2020.12.16.19.58.17; Wed, 16 Dec 2020 19:58:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=RJZX2LfE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727788AbgLQD5u (ORCPT + 99 others); Wed, 16 Dec 2020 22:57:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727233AbgLQD5u (ORCPT ); Wed, 16 Dec 2020 22:57:50 -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 E807DC0617A7; Wed, 16 Dec 2020 19:57:09 -0800 (PST) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8AEFA2C2; Thu, 17 Dec 2020 04:57:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1608177426; bh=CeiKeoDJuFXUx0AHENcynkDr6bZJyQ4HAeC/obSpibU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RJZX2LfELR0TstaN5POWm7Al4x8ORmkoALPckEai0xH+I6J1Xnw7V+hZOlrRoN5qg pFQ7Sxkv++3blKSkKWGM33OpaeQsXpLDa0NDBfp+p4HRHXtrH+1oy43Hqs/hHnEYR2 DDqkNi8C8oy0VqhuHIwzyVpWcuE4c40+HipxLVww= Date: Thu, 17 Dec 2020 05:56:59 +0200 From: Laurent Pinchart To: Christophe JAILLET Cc: kieran.bingham+renesas@ideasonboard.com, mchehab@kernel.org, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] media: vsp1: Fix an error handling path in the probe function Message-ID: References: <20201212174119.120027-1-christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201212174119.120027-1-christophe.jaillet@wanadoo.fr> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christophe, Thank you for the patch. On Sat, Dec 12, 2020 at 06:41:19PM +0100, Christophe JAILLET wrote: > A previous 'rcar_fcp_get()' call must be undone in the error handling path, > as already done in the remove function. > > Fixes: 94fcdf829793 ("[media] v4l: vsp1: Add FCP support") > Signed-off-by: Christophe JAILLET Reviewed-by: Laurent Pinchart and queued in my tree for v5.12. > --- > drivers/media/platform/vsp1/vsp1_drv.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/vsp1/vsp1_drv.c b/drivers/media/platform/vsp1/vsp1_drv.c > index dc62533cf32c..aa66e4f5f3f3 100644 > --- a/drivers/media/platform/vsp1/vsp1_drv.c > +++ b/drivers/media/platform/vsp1/vsp1_drv.c > @@ -882,8 +882,10 @@ static int vsp1_probe(struct platform_device *pdev) > } > > done: > - if (ret) > + if (ret) { > pm_runtime_disable(&pdev->dev); > + rcar_fcp_put(vsp1->fcp); > + } > > return ret; > } -- Regards, Laurent Pinchart