linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers/base/driver.c : driver_unregister
@ 2004-12-11 18:54 Arne Caspari
  2004-12-11 19:11 ` Russell King
  0 siblings, 1 reply; 5+ messages in thread
From: Arne Caspari @ 2004-12-11 18:54 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 206 bytes --]

Hi all,

I think the meaning of this patch is obvious: In driver_unregister, the 
bus_remove_driver function call was called outside the driver unload 
semaphore which should obviously protect it.

 /Arne


[-- Attachment #2: driver_unregister.patch --]
[-- Type: text/x-patch, Size: 476 bytes --]

*** linux-2.6.9/drivers/base/driver.c	Mon Oct 18 23:55:06 2004
--- kernel-source-2.6.9/drivers/base/driver.c	Sat Dec 11 10:59:59 2004
***************
*** 106,113 ****
  
  void driver_unregister(struct device_driver * drv)
  {
- 	bus_remove_driver(drv);
  	down(&drv->unload_sem);
  	up(&drv->unload_sem);
  }
  
--- 106,113 ----
  
  void driver_unregister(struct device_driver * drv)
  {
  	down(&drv->unload_sem);
+ 	bus_remove_driver(drv);
  	up(&drv->unload_sem);
  }
  

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-12-13 21:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-11 18:54 [PATCH] drivers/base/driver.c : driver_unregister Arne Caspari
2004-12-11 19:11 ` Russell King
2004-12-11 19:24   ` Arne Caspari
2004-12-13  7:21     ` Arne Caspari
2004-12-13 21:07       ` Matt Mackall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).