Received: by 10.223.176.5 with SMTP id f5csp811534wra; Fri, 9 Feb 2018 07:35:38 -0800 (PST) X-Google-Smtp-Source: AH8x227f5yjO4m9H5+WoZ9utcBXsUWcoSqvyA3lAhDREHmD1HsnKbCfvNW5GoOcOLpr99esPDN4T X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr2951147plb.342.1518190538610; Fri, 09 Feb 2018 07:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518190538; cv=none; d=google.com; s=arc-20160816; b=YhNXmNjHmIjn8mGHbSTBCuNBNmHxH450cTOiXMMpqIHXB8C1su79hW9RqdRzXlN5Al eRSSJiZbgqQqiR64bmHiTwSLQCxWunXbc6RQrK0hGZz8Qhp3t29BGAsr7EKTsdaUaqT7 NQVjFTkgllB0SMkFMfLUPLvUnA6puQPDI29hX1afwMT4q/xFquzcQJFU83SXDQ8/df1T Met/O8AF/RP8F9oo4uJjtfnsUtpTCtD9Q1wsOFcIalHZ4mV2uY14U06Lsttsqgw98WoN WnrqKBY0slWZseHYGv7GwIYBEVcfOEgwu6886vY6vL1L6HXPnT8hXtuMt3m/JFpAdOJH hv/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=65e55A+g2aJ2yuZZvVv/luBBzaLZZc28PHqPjCzGgw0=; b=E7QWr3mXybY6IsLtLXBJ7tsJmPL542J5bVYqsL+oGutFyHjcXd2kcp0DbNu0zfAu94 hTiTrfobJgEMyjrF1BuELuBE0QUjzA2mIQ6QZNKxgxB3RkggBuRqg0w6w78APEoA2da1 Hu35YLWN+4Td02duJ5+yNxyTrDKuSDj+FCj5yyVwZ3t4/uYHm6MIiis0MNXfP7q0aKRr vy3S9S7h2epDQoX2OENulvga3r6GqCwyiJAFlKyJiQnGKuTZepoBQH7kZOFnZK8iLWx1 P4UnpEOdidjRnzAnuJRA3xHOjHUd4cWrNUerSp8IPsUXTHBFGN16l7ZwgNPJugJIJ1A/ 2sjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=HVvGU8+s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y128si1492603pgb.728.2018.02.09.07.35.23; Fri, 09 Feb 2018 07:35:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=HVvGU8+s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751150AbeBIPeq (ORCPT + 99 others); Fri, 9 Feb 2018 10:34:46 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:41081 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeBIPeo (ORCPT ); Fri, 9 Feb 2018 10:34:44 -0500 Received: by mail-lf0-f68.google.com with SMTP id f136so11750218lff.8 for ; Fri, 09 Feb 2018 07:34:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=65e55A+g2aJ2yuZZvVv/luBBzaLZZc28PHqPjCzGgw0=; b=HVvGU8+s9EL31zGrRGFt1b/yOuy1jvCRwSFhAiVmjor0qZiA/kXehkHvJK7WvqopxI Djin+1ACxhR8rvRXFFkoWs+TyocRTF6dW+/D3AuLr642Wu5b9+4Fdpxp7c6u8qNckyLf UlNqOMfYb65yL5FfgHV3ySxIdFv5r+SZKtDz0gnhbAdmo8OkwLpNadljPpApYo3I1vX9 EwM3T7c4YL69qGXGTuREuAumlorBRVao8xDI+rVSMDdkUVelunLVayTFP042R4UC4vo6 SJsCcTD2KrESfaw3ReomlHZt1eTODtfJi4lXe0PVEzfN5lFxSnGGNaI0Cw85VkLa6lab vozg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=65e55A+g2aJ2yuZZvVv/luBBzaLZZc28PHqPjCzGgw0=; b=YMbbfC8zNlRtlfR5HCc/+bPP9Dqg20JDIWayo5p0syWOGN+5h5agr0VVa3vaZm81wV xYtYzYsxWf6yWGv+djYgvQrVGEsLFZKUDTuHewNrFE44DgeBIrYR4PpZzPyXznsTsQHb 5A3VHsZqDeBdd5JSNObYG8OWF19bEMWvUXcUl4Qudp2a0RoVVH9tgC9eSY4gX6yw1WXS uDDmXSlo+seQYVM+wtzsfh2hp5JLoY1qCX140hJ9l9GJ1ifxDRtbahmS5mELHd09SZOs 5HS3WghgUqpaPhYW9+yRoRNos1gUqh1HsIFoOdSQzWVrrcThMjZGpzAKeauTS9Uy6Qbb eycg== X-Gm-Message-State: APf1xPDUk058uHnzkSU+VTyPFP8vpuzveWVJhXo7k9E/XiBF/Rgn52Ds 3Z2m/dmJI/CNBuwSGFoGQ9Sm+Oqb X-Received: by 10.25.168.141 with SMTP id r135mr2374749lfe.80.1518190482989; Fri, 09 Feb 2018 07:34:42 -0800 (PST) Received: from localhost (89-233-230-99.cust.bredband2.com. [89.233.230.99]) by smtp.gmail.com with ESMTPSA id 62sm471801ljz.25.2018.02.09.07.34.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2018 07:34:41 -0800 (PST) Date: Fri, 9 Feb 2018 16:34:41 +0100 From: Niklas =?iso-8859-1?Q?S=F6derlund?= To: Kieran Bingham Cc: Kieran Bingham , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, Kieran Bingham , Mauro Carvalho Chehab , open list Subject: Re: [PATCH] media: i2c: adv748x: Fix cleanup jump on chip identification Message-ID: <20180209153441.GD7666@bigcity.dyn.berto.se> References: <1518037895-10921-1-git-send-email-kbingham@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1518037895-10921-1-git-send-email-kbingham@kernel.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kieran, Thanks for your patch. On 2018-02-07 21:11:35 +0000, Kieran Bingham wrote: > From: Kieran Bingham > > The error handling for the adv748x_identify_chip() call erroneously > jumps to the err_cleanup_clients label before the clients have been > established. > > Correct this by jumping to the next (and correct) label in the cleanup > code: err_cleanup_dt. > > Fixes: 3e89586a64df ("media: i2c: adv748x: add adv748x driver") > > Signed-off-by: Kieran Bingham Reviewed-by: Niklas S?derlund > --- > drivers/media/i2c/adv748x/adv748x-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/adv748x/adv748x-core.c b/drivers/media/i2c/adv748x/adv748x-core.c > index 6d62b817ed00..6ccaad7e9eca 100644 > --- a/drivers/media/i2c/adv748x/adv748x-core.c > +++ b/drivers/media/i2c/adv748x/adv748x-core.c > @@ -651,7 +651,7 @@ static int adv748x_probe(struct i2c_client *client, > ret = adv748x_identify_chip(state); > if (ret) { > adv_err(state, "Failed to identify chip"); > - goto err_cleanup_clients; > + goto err_cleanup_dt; > } > > /* Configure remaining pages as I2C clients with regmap access */ > -- > 2.7.4 > -- Regards, Niklas S?derlund