From: Jeff Hartmann Date: Fri, 28 Jan 2000 02:11:01 +0000 (+0000) Subject: Fixed freelist_put bug X-Git-Tag: libdrm-1_0_0~1250 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9fcbf05c442d0b45d0fa7d7aca28e1f3c67de65a;p=platform%2Fupstream%2Flibdrm.git Fixed freelist_put bug --- diff --git a/linux/lists.c b/linux/lists.c index 442bb2a..120817c 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");