From mboxrd@z Thu Jan 1 00:00:00 1970 From: "gregkh@linuxfoundation.org" Subject: Re: [PATCH v2] PM: Fix dev_pm_put_subsys_data() to not call kfree() while holding device power lock Date: Mon, 6 May 2013 12:41:19 -0700 Message-ID: <20130506194119.GA15886@kroah.com> References: <1367614010.8452.2.camel@lorien> <20130504125116.GA13770@amd.pavel.ucw.cz> <1882177.s6zpHZ6crc@vostro.rjw.lan> <20130506120925.GA25542@amd.pavel.ucw.cz> <1367867093.2953.49.camel@lorien> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:58087 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755722Ab3EFTlV (ORCPT ); Mon, 6 May 2013 15:41:21 -0400 Content-Disposition: inline In-Reply-To: <1367867093.2953.49.camel@lorien> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Shuah Khan Cc: "len.brown@intel.com" , "rafael.j.wysocki@intel.com" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "shuahkhan@gmail.com" On Mon, May 06, 2013 at 07:04:53PM +0000, Shuah Khan wrote: > dev_pm_put_subsys_data() calls kfree() while holding device power lock, when > the reference count is 0. Fix it to call kfree() after releasing the lock. > > Signed-off-by: Shuah Khan > Reviewed-by: Pavel Machek > Reviewed-by: Rafael Wysocki > --- > drivers/base/power/common.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) Is this causing a problem now, and it should go into 3.10 and earlier kernels (if so, which ones?), or can it just wait until 3.11 as it's just a cleanup fix? thanks, greg k-h