kern/114688: [drm] RADEON/AIGLX/DRM Problem
vehemens
vehemens at verizon.net
Wed Aug 22 00:00:17 PDT 2007
The following reply was made to PR kern/114688; it has been noted by GNATS.
From: vehemens <vehemens at verizon.net>
To: bug-followup at freebsd.org
Cc:
Subject: Re: kern/114688: [drm] RADEON/AIGLX/DRM Problem
Date: Tue, 21 Aug 2007 23:50:07 -0700
The previous code change was only tested in the git branch, and I fumbled
modifying it for the freebsd branch.
This revised patch has been tested using the 7.0 driver code.
--- drm_drv.c.orig 2006-09-07 16:04:47.000000000 -0700
+++ drm_drv.c 2007-08-21 21:47:08.000000000 -0700
@@ -711,6 +711,8 @@
return EINVAL;
}
+if (--priv->refs == 0) {
+
if (dev->driver.preclose != NULL)
dev->driver.preclose(dev, filp);
@@ -786,7 +788,7 @@
dev->buf_pgid = 0;
#endif /* __NetBSD__ || __OpenBSD__ */
- if (--priv->refs == 0) {
+// if (--priv->refs == 0) {
if (dev->driver.postclose != NULL)
dev->driver.postclose(dev, priv);
TAILQ_REMOVE(&dev->files, priv, link);
More information about the freebsd-bugs
mailing list