CVSROOT:        /cvs
Module name:    src
Changes by:     [EMAIL PROTECTED]       2008/07/29 13:44:13

Modified files:
        sys/dev/pci/drm: drmP.h drm_agpsupport.c drm_auth.c drm_bufs.c 
                         drm_context.c drm_dma.c drm_drawable.c 
                         drm_drv.c drm_fops.c drm_ioctl.c drm_irq.c 
                         drm_memory.c drm_pci.c drm_scatter.c i915_dma.c 
                         mach64_dma.c mga_dma.c r128_cce.c radeon_cp.c 
                         radeon_mem.c savage_bci.c savage_state.c 

Log message:
Switch all instances of malloc/free in the DRM to drm_alloc, drm_free
and drm_calloc.

With the recent change to check overflow in drm_calloc, this means that
all allocations that require multiplication are now checked. Also use
drm_calloc() when zeroing is needed and drop the bzero/memset
afterwards.  Finally, make drm_free() check for NULL, so we don't need
to do so every time.

ok miod@, deraadt@

Reply via email to