summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-05-06 19:31:28 +0000
committeralfred <alfred@FreeBSD.org>2002-05-06 19:31:28 +0000
commitd1e340364b9883eebdfb4928891b438172fe13fb (patch)
tree2b65f57e5ea93f67973ae506e853d0b56f0f9adc /sys/dev/drm
parent06d090201082aed150ddddb16d8da5721b05c296 (diff)
downloadFreeBSD-src-d1e340364b9883eebdfb4928891b438172fe13fb.zip
FreeBSD-src-d1e340364b9883eebdfb4928891b438172fe13fb.tar.gz
Make funsetown() take a 'struct sigio **' so that the locking can
be done internally. Ensure that no one can fsetown() to a dying process/pgrp. We need to check the process for P_WEXIT to see if it's exiting. Process groups are already safe because there is no such thing as a pgrp zombie, therefore the proctree lock completely protects the pgrp from having sigio structures associated with it after it runs funsetownlst. Add sigio lock to witness list under proctree and allproc, but over proc and pgrp. Seigo Tanimura helped with this.
Diffstat (limited to 'sys/dev/drm')
-rw-r--r--sys/dev/drm/drm_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/drm_drv.h b/sys/dev/drm/drm_drv.h
index 9524499..7013955 100644
--- a/sys/dev/drm/drm_drv.h
+++ b/sys/dev/drm/drm_drv.h
@@ -1098,7 +1098,7 @@ int DRM( close)(dev_t kdev, int flags, int fmt, DRM_OS_STRUCTPROC *p)
DRM(fasync)( -1, filp, 0 );
#endif /* __linux__ */
#ifdef __FreeBSD__
- funsetown(dev->buf_sigio);
+ funsetown(&dev->buf_sigio);
#endif /* __FreeBSD__ */
DRM_OS_LOCK;
OpenPOWER on IntegriCloud