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

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jul 16 20:50:35 PDT 2005


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





More information about the Commits mailing list