From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH v2 1/2] PM / AVS: SmartReflex: use devm_* API to initialize SmartReflex Date: Mon, 10 Jun 2013 10:51:13 -0700 Message-ID: <87ppvtdfce.fsf@linaro.org> References: <1370339913-16135-1-git-send-email-andrii.tseglytskyi@ti.com> <1370339913-16135-2-git-send-email-andrii.tseglytskyi@ti.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1370339913-16135-2-git-send-email-andrii.tseglytskyi@ti.com> (Andrii Tseglytskyi's message of "Tue, 4 Jun 2013 12:58:32 +0300") Sender: linux-kernel-owner@vger.kernel.org To: Andrii Tseglytskyi Cc: j-keerthy@ti.com, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-pm@vger.kernel.org List-Id: linux-pm@vger.kernel.org Andrii Tseglytskyi writes: > Use of of devm_* API for resource allocation provides benefits such > as auto handling of resource free. This reduces possibility have > memory leaks in case of wrong error handling. All direct release > calls should be removed to avoid races. > > Reported-by: Grygorii Strashko > Signed-off-by: Andrii Tseglytskyi Thanks, queuing this for v3.11. Kevin