diff options
author | rnoland <rnoland@FreeBSD.org> | 2008-10-13 17:52:41 +0000 |
---|---|---|
committer | rnoland <rnoland@FreeBSD.org> | 2008-10-13 17:52:41 +0000 |
commit | 0d37976f3d86d7805a29299cc21e4b517b824aac (patch) | |
tree | 30a5c06f0b7622155c6367d4c7ccd9e41f631172 /sys/dev/drm/drm_linux_list.h | |
parent | a12193d248b4224b19c92b4fa9563fb4ca4605c4 (diff) | |
download | FreeBSD-src-0d37976f3d86d7805a29299cc21e4b517b824aac.zip FreeBSD-src-0d37976f3d86d7805a29299cc21e4b517b824aac.tar.gz |
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)
Diffstat (limited to 'sys/dev/drm/drm_linux_list.h')
-rw-r--r-- | sys/dev/drm/drm_linux_list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/drm/drm_linux_list.h b/sys/dev/drm/drm_linux_list.h index d0a5c70..d2142a4 100644 --- a/sys/dev/drm/drm_linux_list.h +++ b/sys/dev/drm/drm_linux_list.h @@ -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) |