Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752929AbZLBLD0 (ORCPT ); Wed, 2 Dec 2009 06:03:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751773AbZLBLDZ (ORCPT ); Wed, 2 Dec 2009 06:03:25 -0500 Received: from buzzloop.caiaq.de ([212.112.241.133]:35484 "EHLO buzzloop.caiaq.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035AbZLBLDZ (ORCPT ); Wed, 2 Dec 2009 06:03:25 -0500 Date: Wed, 2 Dec 2009 12:03:26 +0100 From: Daniel Mack To: Eric Miao Cc: Pierre Ossman , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@kernel.org Subject: Re: [PATCH] mmc: pxamci: call mmc_remove_host() before freeing resources Message-ID: <20091202110326.GZ14091@buzzloop.caiaq.de> References: <1259687838-31722-1-git-send-email-daniel@caiaq.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1156 Lines: 34 On Wed, Dec 02, 2009 at 08:50:44AM +0800, Eric Miao wrote: > On Wed, Dec 2, 2009 at 1:17 AM, Daniel Mack wrote: > > mmc_remove_host() will cause the mmc core to switch off the bus power by > > eventually calling pxamci_set_ios(). This function uses the regulator or > > the GPIO which have been freed already. > > > > This causes the following Oops on module unload. > > [...] > > > > Signed-off-by: Daniel Mack > > Reported-by: Sven Neumann > > Cc: Pierre Ossman > > Cc: Eric Miao > > Cc: linux-mmc@vger.kernel.org > > Cc: linux-arm-kernel@lists.infradead.org > > Cc: stable@kernel.org > > --- > > ?drivers/mmc/host/pxamci.c | ? ?4 ++-- > > Looks like a correct fix to me. > > Acked-by: Eric Miao Would be good to still get this into .32 - who will take care of picking this? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/