Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 2008 17:52:42 +0000 (UTC)
From:      Robert Noland <rnoland@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r183832 - head/sys/dev/drm
Message-ID:  <200810131752.m9DHqgF7082322@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rnoland
Date: Mon Oct 13 17:52:41 2008
New Revision: 183832
URL: http://svn.freebsd.org/changeset/base/183832

Log:
  The linux list compat code had an error which prevented list_for_each_safe()
  from operating on a list with a single item.  This code is used much more by
  the i915 driver with xorg-7.4.  Correct it to match the actual linux
  implementation.
  
  Approved by:	jhb (mentor)

Modified:
  head/sys/dev/drm/drm_linux_list.h

Modified: head/sys/dev/drm/drm_linux_list.h
==============================================================================
--- head/sys/dev/drm/drm_linux_list.h	Mon Oct 13 17:47:13 2008	(r183831)
+++ head/sys/dev/drm/drm_linux_list.h	Mon Oct 13 17:52:41 2008	(r183832)
@@ -69,6 +69,6 @@ list_del(struct list_head *entry) {
 
 #define list_for_each_safe(entry, temp, head)			\
     for (entry = (head)->next, temp = (entry)->next;		\
-	temp != head; 						\
-	entry = temp, temp = temp->next)
+	entry != head; 						\
+	entry = temp, temp = entry->next)
 



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