From fa3fdbd99c6b6e5cec59f1044ce6ce1105b5e8dd Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 7 Nov 2004 00:25:49 +0000 Subject: Now that the memory debug code is gone, and all 3 BSDs have M_ZERO, stop using drm_alloc/drm_free in the core and instead use plain malloc/free. --- bsd-core/drm_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bsd-core/drm_ioctl.c') diff --git a/bsd-core/drm_ioctl.c b/bsd-core/drm_ioctl.c index 014c6b4e..829a99fe 100644 --- a/bsd-core/drm_ioctl.c +++ b/bsd-core/drm_ioctl.c @@ -74,7 +74,7 @@ int drm_setunique(DRM_IOCTL_ARGS) return DRM_ERR(EINVAL); dev->unique_len = u.unique_len; - dev->unique = drm_alloc(u.unique_len + 1, DRM_MEM_DRIVER); + dev->unique = malloc(u.unique_len + 1, M_DRM, M_NOWAIT); if (dev->unique == NULL) return DRM_ERR(ENOMEM); @@ -111,7 +111,7 @@ drm_set_busid(drm_device_t *dev) return EBUSY; dev->unique_len = 20; - dev->unique = drm_alloc(dev->unique_len + 1, DRM_MEM_DRIVER); + dev->unique = malloc(dev->unique_len + 1, M_DRM, M_NOWAIT); if (dev->unique == NULL) return ENOMEM; -- cgit v1.2.3