Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3716523pxt; Tue, 10 Aug 2021 09:41:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr1ovFh6vqTveD+UY+BNlM1Txt3jXfzAB5zRsX/OcekWspVGvU766/WHp1gMOFW2YxL73i X-Received: by 2002:a50:a69e:: with SMTP id e30mr5805049edc.332.1628613696136; Tue, 10 Aug 2021 09:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628613696; cv=none; d=google.com; s=arc-20160816; b=E2GmE0foy6NR8LTzUFhJDJ073PD4Aou5+kHlyiXD6kI30YEy4kHqJZFymg00vYeyKi H4FAvg9aKsy55ooatu8cMdYpkkurpFmOyhzKoFrRuUaORejPdkMMP7nSPASiltiT5S7J iK0ZuXPRGTHtBctTIN4/UfQZE5ayWJtWm4LS8nt9K9qv6xOFWLt6gaYH7s6RzVSIkzQQ akTZ3t17wqBM4/FnCRVaAYnEgUiW18CzMgwm2m1rfn7AuGE0wKBaTY111SEWTUncLzx3 D2O/w3KKbXpbC4FQ723YlEwk1qoUE00QoEAxh2jx04PVi0dWD3zLhTW89dWGDq3UaBWq uRHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=i0TDOgGI271WSDPbeb1D5xhUtZq/Tg5TtnS6wL4eRqk=; b=ypPz4CPYV5iliUI1cuqJKbltiMg4kBriZS3PXmBOJ9ew06l1U0JvrTpVVsS50qrOBo q3wLtAgfKIxd6OjcAYcAjUK7OHIDJxHl77sSwknKQLF97qp+AvPiUnF5BnQYST/7rngb AtD3xCG2GD6zoNaw88IoyXEA2rACc6IL75BgLhgMF/CKqiVVBxgQ3aQhs/MIdN8gG7YI j0LBbWIS8DGM4R8p2XPXkHdL9Tb92tGGnmC71vSXKR9tQaP0x/wDLGLOF/eIhpnYf0BC AEG7+eFcOe5mKwH0fYTMMkGrKbFVfkBqreHKkChwV1GLxX4+NoHNI1EN1IOl0hxhGHzf cSTw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk18si20842814ejb.238.2021.08.10.09.41.10; Tue, 10 Aug 2021 09:41:36 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242624AbhHJPID (ORCPT + 99 others); Tue, 10 Aug 2021 11:08:03 -0400 Received: from mga06.intel.com ([134.134.136.31]:46236 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239566AbhHJPID (ORCPT ); Tue, 10 Aug 2021 11:08:03 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10072"; a="275956713" X-IronPort-AV: E=Sophos;i="5.84,310,1620716400"; d="scan'208";a="275956713" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2021 08:04:16 -0700 X-IronPort-AV: E=Sophos;i="5.84,310,1620716400"; d="scan'208";a="526178724" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2021 08:04:13 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id 9D9C820345; Tue, 10 Aug 2021 18:04:11 +0300 (EEST) Date: Tue, 10 Aug 2021 18:04:11 +0300 From: Sakari Ailus To: Evgeny Novikov Cc: Mauro Carvalho Chehab , Greg Kroah-Hartman , Alex Dewar , Colin Ian King , Linus Walleij , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Subject: Re: [PATCH] media: atomisp: Fix error handling in probe Message-ID: <20210810150411.GG3@paasikivi.fi.intel.com> References: <20210810115303.9089-1-novikov@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210810115303.9089-1-novikov@ispras.ru> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 02:53:03PM +0300, Evgeny Novikov wrote: > There were several issues with handling errors in lm3554_probe(): > - Probe did not set the error code when v4l2_ctrl_handler_init() failed. > - It intermixed gotos for handling errors of v4l2_ctrl_handler_init() > and media_entity_pads_init(). > - Probe did not free resources in case of failures of > atomisp_register_i2c_module(). > > The patch fixes all these issues. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Evgeny Novikov Acked-by: Sakari Ailus -- Sakari Ailus