cvs commit: src/sys/bus/cam/scsi scsi_da.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Jun 13 13:54:02 PDT 2007
dillon 2007/06/13 13:53:39 PDT
DragonFly src repository
Modified files:
sys/bus/cam/scsi scsi_da.c
Log:
dev_dopen() can be called multiple times with only one dev_dclose() when
D_TRACKCLOSE is not specified. Make sure multiple opens only reference
the CAM peripheral once and complain if dev_dclose() is called more then
once.
This also prevents bugs in higher layers from propogating to lower ones.
Revision Changes Path
1.37 +15 -5 src/sys/bus/cam/scsi/scsi_da.c
http://www.dragonflybsd.org/cvsweb/src/sys/bus/cam/scsi/scsi_da.c.diff?r1=1.36&r2=1.37&f=u
More information about the Commits
mailing list