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)
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to