Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp947989imm; Tue, 15 May 2018 11:29:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqeYGwfN0FovTKBs/KOuyr0SoHA9x1Cl0JpXyLKeHcoUYWJQETYtMXpGfDNUtj9zfj3Ptyo X-Received: by 2002:a17:902:be0e:: with SMTP id r14-v6mr15587014pls.158.1526408945741; Tue, 15 May 2018 11:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526408945; cv=none; d=google.com; s=arc-20160816; b=jj/110BcmtaZ+ji//rRRLfuPhT6NfjJvcPUK3c8H1UjV1My9B0kQTuhVNbkYSGvR2t XOIXP7SENLKKQqzd+I3A5uBOVC0+1xU/8v5baCUkMmR817tiPDHpSGOf22MiJPUvDCKv 4DstQWaALYYglB834WObPbRXnTSHXCaCef0sfMqNIbDALFQDTJdBbHu7dmgQ15Ogjh7V p/V74ZjjhxVqnZMRY5kLKDCPj5ub3UXfvDkFh2s5qJAXb1sIIT6JigxzgJuQjFZfqK+y NIL5Y5d7Eur8HVHqNm9wmWFzsb9aodv5Q2M/z7EDCej61oDFMit07cvtAAKKftTYxToN IWRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=ikoE5181Ezs0B+X8SXihdtkPSMBab+GG5PkGApvkqYo=; b=G1piIC7YxZ5MmKEpaG940PMWBIT7LzSADvINOsdggNaq4czFoVG9SjPsrWyrwM9vIj NPuk5V6CHMBVfLyfzhwxD4u3/7xig/muVO6PY0yNwXqq57tJjOxTZVa3g1+95UqOAL/4 1Jm1/Op8bDAMTWpmHQSii2Dij5EMVK6RisiFR4EJiVjOCKQkdWQqNgggyrumCsx8ZL+i WGBIfyKg+CNymVAKpB0LEUSsFBw1LdJF2D8KP+nVR4dOfklfJATWRRvYyhy7p6RJ65iS zqqIDwAEUFoHQfejEYA/tQsZsXyEe/KCRJSTnTyCHLUVHnTrKdOwXljrAiqm7PZRJSOD 4nBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IjqWfL9L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10-v6si459801pgr.642.2018.05.15.11.28.51; Tue, 15 May 2018 11:29:05 -0700 (PDT) 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=@kernel.org header.s=default header.b=IjqWfL9L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752754AbeEOS2m (ORCPT + 99 others); Tue, 15 May 2018 14:28:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:39292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbeEOS2l (ORCPT ); Tue, 15 May 2018 14:28:41 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6746F20677; Tue, 15 May 2018 18:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526408921; bh=0MaLvbWan03WnEh2nVVBH2Vd6x+XYJwrE4kAr21ghEc=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=IjqWfL9LjCNuTaECahT7mSdHqi9EhQyXf+pBiRUSIPvEmKRbYmKecs8OYyJpXgkNU /7E0mLmclzZ/9UX1nzQ5wcYnlBi2sIZRgO1yDkwMTxTP+3cMW66kzrhpasABEQF4IQ R49/Sd8DtfXlwWKYGU5pz7xAQnCFnSEWtZNfBzsY= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Dan Carpenter , Paul Burton From: Stephen Boyd In-Reply-To: <20180510065951.fiojonx5f776z5jm@mwanda> Cc: Colin King , Michael Turquette , linux-mips@linux-mips.org, linux-clk@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180509134031.11611-1-colin.king@canonical.com> <20180509140135.4dndt3baomtxups5@mwanda> <20180509163311.alvyibwwuwkumyxf@pburton-laptop> <20180510065951.fiojonx5f776z5jm@mwanda> Message-ID: <152640892003.34267.13202118557714072290@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH] clk: boston: fix memory leak of 'onecell' on error return paths Date: Tue, 15 May 2018 11:28:40 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Dan Carpenter (2018-05-09 23:59:51) > It would be nice to make things static check clean. One idea would be > that the static checker could ignore resource leaks in __init functions. > = Typically if the stuff is so important that it doesn't work without it then we throw in a panic() or a BUG() call to indicate that all hope is lost. Otherwise, I'm not sure what's wrong with adding in proper error paths for clean recovery.