Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp436963imu; Thu, 8 Nov 2018 10:20:11 -0800 (PST) X-Google-Smtp-Source: AJdET5ehWCgVbrz2NoKeqUXBzpRnOiqZ9UdquCEH7J0Z0NJQ3ZRpOO9FBarkVbROY+0ZOgARV+e/ X-Received: by 2002:a62:de84:: with SMTP id h126-v6mr5517875pfg.129.1541701211139; Thu, 08 Nov 2018 10:20:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541701211; cv=none; d=google.com; s=arc-20160816; b=J3SNRXLyyDlIUXFdeS2fyHR6YAjtogQPQxvdgnLLqWwfhBueLFfLGuAgsk+sOBmkOz 7XAbzegFPEDHbYWj9HRV4dIrh+9chJRJM7DgAyINfYEMqD1R1wEWdxE0uAZ3mUMaV29Y +BWh3rsHd/dBd70hYoMcGmbz4T7tjRK6C5tp57CZvzr7uYgbZ8iftnZw5b8Lb9U1oPz5 l0NueTNzt7zFI4/o72TgPCQHwEPRlppn5rH5W8OLmbl75wF++oIpWvboS34QWMA0UMRn lx//JbfqI0sxblXZsdbQmj2e61yaAwYHTSVBOmg1YH4yGDLMWfC0DM4svvUU0wosziGt e/ZA== 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; bh=hyuGyPWsjoFKYyWOu9UL+k0JbgP06pF32daBf9nnD20=; b=NGHe/Yko7phWwMMoJ82kh/47Q9jj5HU6aKLfwpzeOfQNp3pKmiqjk+Jz3KzMA9mmFF UVUFQRd+kU89LzxbubqUojyF5cOAL/kzoBDjqmKwLoKzzF4YocF24V6iRNqlQspdJb60 Xe8ztckoNTzw2cOhjZw7uonSXfxRltMFyT8U/TdpqloVQ2RNYNNvRs7e1ifHAxnVuxmW n6o+LxR2AECgnyzM6PRDOfzJM3TEnNUHmI/6YGurPdVhRJanTtnCGPK2G66KYsRuzykg ERvqxEbBw5u9qurH3PwS1REf57lkphVGW4kQlKDVwoyXNbuQ2Sv+DpKyh/IL3sn8EyTL NwOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hvVRi1by; 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 l137-v6si5452912pfd.260.2018.11.08.10.19.55; Thu, 08 Nov 2018 10:20:11 -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=@kernel.org header.s=default header.b=hvVRi1by; 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 S1726933AbeKID4O (ORCPT + 99 others); Thu, 8 Nov 2018 22:56:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:51468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726751AbeKID4N (ORCPT ); Thu, 8 Nov 2018 22:56:13 -0500 Received: from localhost (unknown [104.132.0.74]) (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 3438720825; Thu, 8 Nov 2018 18:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541701170; bh=hyuGyPWsjoFKYyWOu9UL+k0JbgP06pF32daBf9nnD20=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=hvVRi1byTfQYvkp8D+ScGxNZwK0svBIhfeqlMRyshXbg7YsnajjCXTmx8BBDFkd83 TnO+96v/Q2rMEr5f4ge3YfBnmcU5d1Pkn65I1kmepxrdCQnBv9pJkx3EMf5Y+XnXej G1/FNbE1Y9u10H02vZf+EvtMZCXrzndWvFhjOmTI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Yi Wang , paul.burton@mips.com From: Stephen Boyd In-Reply-To: <1540971702-3133-2-git-send-email-wang.yi59@zte.com.cn> Cc: mturquette@baylibre.com, linux-mips@linux-mips.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, Yi Wang References: <1540971702-3133-1-git-send-email-wang.yi59@zte.com.cn> <1540971702-3133-2-git-send-email-wang.yi59@zte.com.cn> Message-ID: <154170116960.88331.164103375264551287@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v3 1/2] clk: boston: fix possible memory leak in clk_boston_setup() Date: Thu, 08 Nov 2018 10:19:29 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Yi Wang (2018-10-31 00:41:41) > Smatch report warnings: > drivers/clk/imgtec/clk-boston.c:76 clk_boston_setup() warn: possible memo= ry leak of 'onecell' > drivers/clk/imgtec/clk-boston.c:83 clk_boston_setup() warn: possible memo= ry leak of 'onecell' > drivers/clk/imgtec/clk-boston.c:90 clk_boston_setup() warn: possible memo= ry leak of 'onecell' > = > 'onecell' is malloced in clk_boston_setup(), but not be freed > before leaving from the error handling cases. > = > Signed-off-by: Yi Wang > --- Applied to clk-next