diff options
author | truckman <truckman@FreeBSD.org> | 2002-10-03 02:13:00 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2002-10-03 02:13:00 +0000 |
commit | da2757cbc5b4e67753f56890f45f5f687cc298ae (patch) | |
tree | a99f59036961904f8470031c60cd1319fed1c7b9 /sys/dev/drm | |
parent | d86ebf792e644b705a6451c5a934d6fa545b3086 (diff) | |
download | FreeBSD-src-da2757cbc5b4e67753f56890f45f5f687cc298ae.zip FreeBSD-src-da2757cbc5b4e67753f56890f45f5f687cc298ae.tar.gz |
In an SMP environment post-Giant it is no longer safe to blindly
dereference the struct sigio pointer without any locking. Change
fgetown() to take a reference to the pointer instead of a copy of the
pointer and call SIGIO_LOCK() before copying the pointer and
dereferencing it.
Reviewed by: rwatson
Diffstat (limited to 'sys/dev/drm')
-rw-r--r-- | sys/dev/drm/drm_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/drm_drv.h b/sys/dev/drm/drm_drv.h index ff034dd..729b2f9 100644 --- a/sys/dev/drm/drm_drv.h +++ b/sys/dev/drm/drm_drv.h @@ -1203,7 +1203,7 @@ int DRM(ioctl)( DRM_OS_IOCTL ) case FIOGETOWN: atomic_dec(&dev->ioctl_count); - *(int *) data = fgetown(dev->buf_sigio); + *(int *) data = fgetown(&dev->buf_sigio); return 0; } #endif /* __FreeBSD__ */ |