Check for zero in drm_calloc() to prevent divide-by-zero. Also rearrange
authoroga <oga@openbsd.org>
Wed, 13 Aug 2008 20:45:42 +0000 (20:45 +0000)
committeroga <oga@openbsd.org>
Wed, 13 Aug 2008 20:45:42 +0000 (20:45 +0000)
commit30eb576afd886949bc2691e3174cf37227bd8bb4
tree5de78fa85a8ae51e8ffd29884e9e37c210ade02f
parent2671e69f619b23382edafe40ed164621b08695c5
Check for zero in drm_calloc() to prevent divide-by-zero. Also rearrange
the two calls to drm_calloc() that had nmemb and size the wrong way
around.
sys/dev/pci/drm/drm_drawable.c
sys/dev/pci/drm/drm_memory.c
sys/dev/pci/drm/drm_scatter.c