Date: Fri, 29 Aug 2008 04:39:46 +0000 (UTC) From: Scott Long <scottl@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/cam/scsi scsi_da.c Message-ID: <200808290439.m7T4dpg2044293@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808290439.m7T4dpg2044293>
