]> git.baikalelectronics.ru Git - kernel.git/commit
DRM: Replace kmalloc/memset combos with kzalloc
authorDavidlohr Bueso <dave@gnu.org>
Wed, 11 Aug 2010 13:18:52 +0000 (09:18 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Aug 2010 23:12:30 +0000 (09:12 +1000)
commit286cabea421559537bd39d3cb024d446bbaf5d64
tree87d5ec184988ad6e8626585036d786dbcccb1bb1
parentcbdc8248abe4199232a9af2bcd521cd506e9802c
DRM: Replace kmalloc/memset combos with kzalloc

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 <dave@gnu.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_bufs.c