cvs commit: src/sys/kern kern_conf.c
    Matthew Dillon 
    dillon at crater.dragonflybsd.org
       
    Wed May 12 17:24:37 PDT 2004
    
    
  
dillon      2004/05/12 17:23:40 PDT
DragonFly src repository
  Modified files:
    sys/kern             kern_conf.c 
  Log:
  Attempting to access a device which has been destroyed, such as a UMASS
  device which has been pulled out and detached from its /dev/daX entry,
  panics the system.  This occurs because the device might not be immediately
  (or ever) removed from the device hash after the device has been destroyed.
  It's fields are cleared, leading to a NULL function call.
  
  Fix the panic by installing a dummy cdevsw when the device is destroyed
  rather then NULLing it out.
  
  Reported-by: Sascha Wildner <saw at xxxxxxxxx>
  
  Revision  Changes    Path
  1.7       +10 -1     src/sys/kern/kern_conf.c
http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_conf.c.diff?r1=1.6&r2=1.7&f=h
    
    
More information about the Commits
mailing list