lkml.org 
[lkml]   [2002]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Driver reference counting and locking, again
Date
Am Dienstag, 16. Juli 2002 02:56 schrieb Patrick Mochel:
> Ok, here is another stab at trying to get reference counting and locking
> right for drivers.
>
> The short of it is that struct device_driver gets an owner field, which
> should be initialized to THIS_MODULE in the driver.

In your implementation it would seem that get_driver can suceed while
remove_driver is already running and the deletion from bus_list has
already happened.

Regards
Oliver



-
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/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.040 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site