cvs commit: src/sys/cam/scsi scsi_da.c
Scott Long
scottl at FreeBSD.org
Fri Aug 29 04:39:52 UTC 2008
scottl 2008-08-29 04:39:46 UTC
FreeBSD src repository
Modified files:
sys/cam/scsi scsi_da.c
Log:
SVN rev 182433 on 2008-08-29 04:39:46Z by scottl
Fix a locking mistake in daopen(). If the open fails, which can happen
because the media was removed, the periph would get its refcount dropped
and ultimately freed before getting unlocked. This created a dangling
pointer that was easy to trip over. This fixes a common source of
crashes with removaable media, but problems remain and will get tracked
down.
Revision Changes Path
1.228 +7 -6 src/sys/cam/scsi/scsi_da.c
More information about the cvs-src
mailing list