From 51e38d96ead5700c25c4fddd8017dc7992e96f5a Mon Sep 17 00:00:00 2001 From: Jeff Hartmann Date: Tue, 7 Aug 2001 18:15:10 +0000 Subject: Lots of DRM fixes: added new pieces of template code so the ffb driver can be ported, rolled back r128 and i810 version bumps so 4.1.0 works with cvs kernel modules, added Config.in and updated Makefile.kernel, incorporated lots of drm fixes inspired by patches sent by Redhat, made DRM(realloc) usage check for NULL allocations, restructure driver init routines to export dev_priv only when initialized and to check for all error conditions. --- linux-core/drm_scatter.c | 1 + 1 file changed, 1 insertion(+) (limited to 'linux-core/drm_scatter.c') diff --git a/linux-core/drm_scatter.c b/linux-core/drm_scatter.c index a0371074..c1c9f7e8 100644 --- a/linux-core/drm_scatter.c +++ b/linux-core/drm_scatter.c @@ -93,6 +93,7 @@ int DRM(sg_alloc)( struct inode *inode, struct file *filp, DRM(free)( entry, sizeof(*entry), DRM_MEM_SGLISTS ); return -ENOMEM; } + memset(entry->pagelist, 0, pages * sizeof(*entry->pagelist)); entry->virtual = vmalloc_32( pages << PAGE_SHIFT ); if ( !entry->virtual ) { -- cgit v1.2.3