patch-2.4.21 linux-2.4.21/drivers/char/drm/drm_lists.h

Next file: linux-2.4.21/drivers/char/drm/drm_scatter.h
Previous file: linux-2.4.21/drivers/char/drm/drm_ioctl.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/char/drm/drm_lists.h linux-2.4.21/drivers/char/drm/drm_lists.h
@@ -41,7 +41,7 @@
 				    DRM_MEM_BUFLISTS);
 
 	if(!bl->bufs) return -ENOMEM;
-
+	memset(bl->bufs, 0, sizeof(*bl->bufs));
 	bl->count      = count;
 	bl->rp	       = bl->bufs;
 	bl->wp	       = bl->bufs;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)