From 9fcbf05c442d0b45d0fa7d7aca28e1f3c67de65a Mon Sep 17 00:00:00 2001 From: Jeff Hartmann Date: Fri, 28 Jan 2000 02:11:01 +0000 Subject: Fixed freelist_put bug --- linux/lists.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/lists.c') diff --git a/linux/lists.c b/linux/lists.c index 442bb2a6..120817cc 100644 --- a/linux/lists.c +++ b/linux/lists.c @@ -25,7 +25,7 @@ * DEALINGS IN THE SOFTWARE. * * $PI: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/lists.c,v 1.3 1999/08/20 15:07:02 faith Exp $ - * $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/lists.c,v 1.2 1999/12/14 01:33:57 robin Exp $ + * $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/lists.c,v 1.1 1999/09/25 14:38:01 dawes Exp $ * */ @@ -154,7 +154,7 @@ int drm_freelist_put(drm_device_t *dev, drm_freelist_t *bl, drm_buf_t *buf) buf->list = DRM_LIST_FREE; do { old = bl->next; - bl->next = old; + buf->next = old; prev = cmpxchg(&bl->next, old, buf); if (++count > DRM_LOOPING_LIMIT) { DRM_ERROR("Looping\n"); -- cgit v1.2.3