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

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

diff -urN linux-2.4.20/drivers/char/drm/drm_scatter.h linux-2.4.21/drivers/char/drm/drm_scatter.h
@@ -93,6 +93,8 @@
 		return -ENOMEM;
 	}
 
+	memset(entry->pagelist, 0, pages * sizeof(*entry->pagelist));
+
 	entry->busaddr = DRM(alloc)( pages * sizeof(*entry->busaddr),
 				     DRM_MEM_PAGES );
 	if ( !entry->busaddr ) {

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