summaryrefslogtreecommitdiff
path: root/linux/drm_scatter.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drm_scatter.h')
-rw-r--r--linux/drm_scatter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drm_scatter.h b/linux/drm_scatter.h
index a0371074..c1c9f7e8 100644
--- a/linux/drm_scatter.h
+++ b/linux/drm_scatter.h
@@ -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 ) {