DragonFly BSD
DragonFly commits List (threaded) for 2004-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern kern_conf.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 May 2004 17:23:40 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]