[PATCH] DRM: Replace kmalloc/memset combos with kzalloc

2010-08-11 Thread Kristian Høgsberg
On Wed, Aug 11, 2010 at 3:58 PM, Davidlohr Bueso wrote: > On Wed, 2010-08-11 at 07:35 -0700, Joe Perches wrote: >> On Wed, 2010-08-11 at 09:18 -0400, Davidlohr Bueso wrote: >> > memory allocation in drm_bufs.c is followed by initializing the memory >> > with 0. >> > >> > Replace the use of kmallo

Re: [PATCH] DRM: Replace kmalloc/memset combos with kzalloc

2010-08-11 Thread Kristian Høgsberg
On Wed, Aug 11, 2010 at 3:58 PM, Davidlohr Bueso wrote: > On Wed, 2010-08-11 at 07:35 -0700, Joe Perches wrote: >> On Wed, 2010-08-11 at 09:18 -0400, Davidlohr Bueso wrote: >> > memory allocation in drm_bufs.c is followed by initializing the memory >> > with 0. >> > >> > Replace the use of kmallo

[PATCH] DRM: Replace kmalloc/memset combos with kzalloc

2010-08-11 Thread Davidlohr Bueso
On Wed, 2010-08-11 at 07:35 -0700, Joe Perches wrote: > On Wed, 2010-08-11 at 09:18 -0400, Davidlohr Bueso wrote: > > memory allocation in drm_bufs.c is followed by initializing the memory with > > 0. > > > > Replace the use of kmalloc+memset with kzalloc. > > Perhaps kzalloc's with a multiply c

Re: [PATCH] DRM: Replace kmalloc/memset combos with kzalloc

2010-08-11 Thread Davidlohr Bueso
On Wed, 2010-08-11 at 07:35 -0700, Joe Perches wrote: > On Wed, 2010-08-11 at 09:18 -0400, Davidlohr Bueso wrote: > > memory allocation in drm_bufs.c is followed by initializing the memory with > > 0. > > > > Replace the use of kmalloc+memset with kzalloc. > > Perhaps kzalloc's with a multiply c

[PATCH] DRM: Replace kmalloc/memset combos with kzalloc

2010-08-11 Thread Davidlohr Bueso
Currently most, if not all, memory allocation in drm_bufs.c is followed by initializing the memory with 0. Replace the use of kmalloc+memset with kzalloc. Signed-off-by: Davidlohr Bueso --- drivers/gpu/drm/drm_bufs.c | 33 +++-- 1 files changed, 11 insertions(+),

Re: [PATCH] DRM: Replace kmalloc/memset combos with kzalloc

2010-08-11 Thread Joe Perches
On Wed, 2010-08-11 at 09:18 -0400, Davidlohr Bueso wrote: > memory allocation in drm_bufs.c is followed by initializing the memory with 0. > > Replace the use of kmalloc+memset with kzalloc. Perhaps kzalloc's with a multiply could/should also be converted to kcalloc. > + entry->buflist = kza

[PATCH] DRM: Replace kmalloc/memset combos with kzalloc

2010-08-11 Thread Davidlohr Bueso
Currently most, if not all, memory allocation in drm_bufs.c is followed by initializing the memory with 0. Replace the use of kmalloc+memset with kzalloc. Signed-off-by: Davidlohr Bueso --- drivers/gpu/drm/drm_bufs.c | 33 +++-- 1 files changed, 11 insertions(+),

[PATCH] DRM: Replace kmalloc/memset combos with kzalloc

2010-08-11 Thread Joe Perches
On Wed, 2010-08-11 at 09:18 -0400, Davidlohr Bueso wrote: > memory allocation in drm_bufs.c is followed by initializing the memory with 0. > > Replace the use of kmalloc+memset with kzalloc. Perhaps kzalloc's with a multiply could/should also be converted to kcalloc. > + entry->buflist = kza