diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2002-03-06 19:30:45 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2002-03-06 19:30:45 +0000 |
commit | 46cacdca855a99c1ffe0ccf7a7f88134bca9bade (patch) | |
tree | 038b0f31082031de70f91a4b8bd7ea66ea9dc105 /bsd-core/drm_scatter.c | |
parent | ab87c5d0d1b5c35006ce8b99a9260e3116c732dc (diff) |
first pass at merging mesa 4.0 kernel drivers into new bsd-3-0-0 branch.
Diffstat (limited to 'bsd-core/drm_scatter.c')
-rw-r--r-- | bsd-core/drm_scatter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bsd-core/drm_scatter.c b/bsd-core/drm_scatter.c index a6b8275f..07e8e4e5 100644 --- a/bsd-core/drm_scatter.c +++ b/bsd-core/drm_scatter.c @@ -97,6 +97,8 @@ int DRM(sg_alloc)( struct inode *inode, struct file *filp, return -ENOMEM; } + memset(entry->pagelist, 0, pages * sizeof(*entry->pagelist)); + entry->busaddr = DRM(alloc)( pages * sizeof(*entry->busaddr), DRM_MEM_PAGES ); if ( !entry->busaddr ) { |