Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2007 07:00:16 GMT
From:      vehemens <vehemens@verizon.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/114688: [drm] RADEON/AIGLX/DRM Problem
Message-ID:  <200708220700.l7M70GYc055605@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/114688; it has been noted by GNATS.

From: vehemens <vehemens@verizon.net>
To: bug-followup@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708220700.l7M70GYc055605>