Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932751Ab2EJOLg (ORCPT ); Thu, 10 May 2012 10:11:36 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:50197 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932649Ab2EJOLe (ORCPT ); Thu, 10 May 2012 10:11:34 -0400 Date: Thu, 10 May 2012 07:11:30 -0700 From: Greg Kroah-Hartman To: Hiroshi DOYU Cc: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 1/1] Driver Core: don't oops with unregistered driver in driver_find_device() Message-ID: <20120510141130.GA20373@kroah.com> References: <1336635302-29260-1-git-send-email-hdoyu@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1336635302-29260-1-git-send-email-hdoyu@nvidia.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1042 Lines: 29 On Thu, May 10, 2012 at 10:35:02AM +0300, Hiroshi DOYU wrote: > driver_find_device() can be called with an unregistered driver. Who does that? Where in the kernel? Why would you try to do that? > Need to check driver_private to see if it's populated or not, > especially under deferrable probe. Hm, I don't know if this will really catch a driver that was registered and then was unregistered, right? It seems like moving the real problem somewhere else, why not fix the original issue instead? > Signed-off-by: Hiroshi DOYU > --- > In [PATCHv5 2/3] ARM: tegra: Add SMMU enabler in AHB: > http://article.gmane.org/gmane.linux.ports.tegra/4658 > > "tegra_ahb_driver" may not be populated when it's called. It can? I don't see that in that patch. confused, greg k-h -- 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/