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

cvs commit: src/sys/bus/cam cam_xpt.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 16 Jul 2005 20:49:50 -0700 (PDT)

dillon      2005/07/16 20:49:50 PDT

DragonFly src repository

  Modified files:
    sys/bus/cam          cam_xpt.c 
  Log:
  When a usb mass storage device is removed the related CAM SIM structure is
  terminated.  A ref count prevents the actual sim structure from being
  destroyed if the device still has refs, but the sim->devq structure is not so
  protected and will be NULLed out.  An unmount attempt after device removal
  will then result in a panic.
  
  Fix this by testing for a NULL sim->devq.
  
  Reported-by: Eduardo Tongson <propolice@xxxxxxxxx>
  
  Revision  Changes    Path
  1.26      +27 -11    src/sys/bus/cam/cam_xpt.c


http://www.dragonflybsd.org/cvsweb/src/sys/bus/cam/cam_xpt.c.diff?r1=1.25&r2=1.26&f=u



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