Received: by 10.223.176.5 with SMTP id f5csp1128651wra; Wed, 7 Feb 2018 13:12:38 -0800 (PST) X-Google-Smtp-Source: AH8x22441IRn4eskrDAYqH+EaZ09prq+T0xqprLU3Eo2il21brATupy7rJCUr3nnTy2CiZVm0u9M X-Received: by 10.101.82.134 with SMTP id y6mr6175487pgp.101.1518037958070; Wed, 07 Feb 2018 13:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518037958; cv=none; d=google.com; s=arc-20160816; b=vCaq0SxoItNEhQftYMi90ECBqj6YawbagYSbAhBgIuARt5zwgVf4H4zmAIWICeDsSR I9AuskTMRSV0Y+vNIL5gBMsfjJVeD4Ec1A+TjcfbDVx8mCM9T6+1mudnHZ5zKMfjn836 /+k9PT1fEjOS8Y6p4yjBCVmI2jLmqUcte75IQaOYJ5Ak3jOxJayL8RyrDQT//JnHRneR HsqEFRVBSoX1GcY5I/4ds2+g0M0/G1JwQLKfDyZyzZz+1z2DN5dRl5qImuaQaLvDzpTz qDF5G/Ow7WdX5itsc2SdiOuuY8D5855ZBr5eaOJNJx/b6heD4E4r0Zjvc2sd8WqifxCR bg8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:arc-authentication-results; bh=7h4oWlmUKWprgkImCY7vqFcgtME2a3/BHoXAYP9J5yw=; b=ACYztJBvJxxlvx05atfvSeeC1/7HNlUPC6N6BJmo1LNe6Tqa7ibes9DyHNf/Q9hubo dmSUaUGXHDH/pHMUNsh012XMHFsOYV3R5ZWoMP8M+4TkyN4OovYZ8NJ/g7sFeZZYyES7 ku/Z76M/X4OhTiAAbhG1RLijBPUrsUSro4LVJr3KZpsHn6V1fv3NTefCR0U9brzmbQ+W RI9ENb8O0NpAmQ+kfz4EdSoV8Wl+24voRXX2ntE8rQClBS8rimQmhcIcHjLgSf6DU8vV C2uCPHg8vYApBG/yIccUZBM//3RBYRdiL7pRSzBhSBxG6DJ6SWc1DLFiwsOKFyqAxNZk 5mIA== ARC-Authentication-Results: i=1; mx.google.com; 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 h32-v6si161015pld.717.2018.02.07.13.12.23; Wed, 07 Feb 2018 13:12: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; 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 S1754765AbeBGVLl (ORCPT + 99 others); Wed, 7 Feb 2018 16:11:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:41952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754531AbeBGVLk (ORCPT ); Wed, 7 Feb 2018 16:11:40 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C6CF217B2; Wed, 7 Feb 2018 21:11:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7C6CF217B2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=kbingham@kernel.org From: Kieran Bingham To: Kieran Bingham , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org Cc: Kieran Bingham , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] media: i2c: adv748x: Fix cleanup jump on chip identification Date: Wed, 7 Feb 2018 21:11:35 +0000 Message-Id: <1518037895-10921-1-git-send-email-kbingham@kernel.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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