lkml.org 
[lkml]   [2012]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 1/1] Driver Core: don't oops with unregistered driver in driver_find_device()
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 <hdoyu@nvidia.com>
> ---
> 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


\
 
 \ /
  Last update: 2012-05-10 16:41    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site