diff options
author | scottl <scottl@FreeBSD.org> | 2008-08-29 04:39:46 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2008-08-29 04:39:46 +0000 |
commit | 743ae14c809633e69d2ef724ef9ec1d47c62f73f (patch) | |
tree | 1b77c21367fd5648d99df6852bb2f8afcd4020fb /contrib/tcsh/tc.os.h | |
parent | a85de0848e0fa376e2251aeb571e7f98b7752f94 (diff) | |
download | FreeBSD-src-743ae14c809633e69d2ef724ef9ec1d47c62f73f.zip FreeBSD-src-743ae14c809633e69d2ef724ef9ec1d47c62f73f.tar.gz |
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.
Diffstat (limited to 'contrib/tcsh/tc.os.h')
0 files changed, 0 insertions, 0 deletions