Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp570459ybg; Tue, 28 Jul 2020 13:05:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMqj4KVvYFC1ej2bhuXIZuVcgHzsIQRDZfZdYYX9qs7OvpV6ezUGlJYf/g9YzWX+x7MUNV X-Received: by 2002:a17:906:7e05:: with SMTP id e5mr12832516ejr.252.1595966705441; Tue, 28 Jul 2020 13:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595966705; cv=none; d=google.com; s=arc-20160816; b=NcHVOvOFcZqQRhTIFBhPfwcKyVdAko8LvJCWQfMp8S4kWQW0SkhZhQiBL2vf53tXy7 vv3KzmR2ZVwBmu+dvE8Psh91rydyLYOVFFrf5mwDTCN4tGpgEdEyHCRgXF425ydzPJXH aqfDeXPudU2WPj8mfeQTOOK0i4ymqs3aj+QLFst9KFzVcNFwCqtsA95YAt0V5YRGvPlB yMFfnMSOw9AQyrot+FLf8bgoyyQMx1n7Yugw6acX9DORQhV1i6GXYOfs7Vw2R1g8d3tq FKQExT0Xqb5KnyIxjcL+gPgk2vR9HoRoas5KZeIuuqXFPpmKfVjCMihDnMPDuW7lMu3B 48Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=5bVk+PWqEcKnq9b9cFeWyNeWh3aCCKRe9dswXmFLev0=; b=IANRy5/qUdbhqN1uhLqXZydXiDHsLnQiJGit3Wzv664H4W/wKM41NWwAnex6utSqwF y/Fd10IQD4Ym5Szjb9HPbzXU9Aj/FVbKO/T4q5SlPLZT9G2PVvlvJ2ZFZNupKiBtofU6 mvV0/gGkadMJkhupHvP5Q5HNLJY6yCls7TwnDkAqWa8JTadmxXCQx9KqrEkdWvocLRZs taqmDN3Qv01FnJsdY7ou2i2vNmsre/81hM99GnrRj02Yje/qeKeH4P212RnGhv+dg8LQ JnB7JpS0U1aC/NKWTdDzrN0Um262rcJpr1tMkRD/uRQOx9IHT7bW16lzxuN8zH+gLivY ISBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=neOa1iXW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fx19si7667915ejb.691.2020.07.28.13.04.43; Tue, 28 Jul 2020 13:05:05 -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; dkim=pass header.i=@kernel.org header.s=default header.b=neOa1iXW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732625AbgG1TPW (ORCPT + 99 others); Tue, 28 Jul 2020 15:15:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:41294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728561AbgG1TPW (ORCPT ); Tue, 28 Jul 2020 15:15:22 -0400 Received: from kernel.org (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 B98432065C; Tue, 28 Jul 2020 19:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595963721; bh=5bVk+PWqEcKnq9b9cFeWyNeWh3aCCKRe9dswXmFLev0=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=neOa1iXWr9CSEYWqYKLGgWtqN0EfV17VVGmzmyZnbWq/Fp7pCnzUqQ5h7IjA9x5UT zIXkQpMScEHKM20Y8065BHpW3Mmmmu4A9maiZkTY11EQXCniHJ3riekiPn4YCAGvMk kHpbX11wLLYYYJ0ycqNarpYerX1721J06GhovEa4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1595926999-14934-1-git-send-email-peng.fan@nxp.com> References: <1595926999-14934-1-git-send-email-peng.fan@nxp.com> Subject: Re: [PATCH v2 1/2] clk: imx: imx8m: avoid memory leak From: Stephen Boyd Cc: kernel@pengutronix.de, linux-imx@nxp.com, Anson.Huang@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan To: abel.vesa@nxp.com, festevam@gmail.com, peng.fan@nxp.com, s.hauer@pengutronix.de, shawnguo@kernel.org Date: Tue, 28 Jul 2020 12:15:20 -0700 Message-ID: <159596372057.1360974.5467052516430145178@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting peng.fan@nxp.com (2020-07-28 02:03:18) > From: Peng Fan >=20 > Use devm_kzalloc() to avoid memory leak when probe fail. >=20 > Signed-off-by: Peng Fan > --- Reviewed-by: Stephen Boyd