patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / drivers / char / drm / radeon_mem.c
index 3a3bf01..83e2f6c 100644 (file)
@@ -137,12 +137,12 @@ static int init_heap(struct mem_block **heap, int start, int size)
        struct mem_block *blocks = DRM_MALLOC(sizeof(*blocks));
 
        if (!blocks) 
-               return -ENOMEM;
+               return DRM_ERR(ENOMEM);
        
        *heap = DRM_MALLOC(sizeof(**heap));
        if (!*heap) {
                DRM_FREE( blocks, sizeof(*blocks) );
-               return -ENOMEM;
+               return DRM_ERR(ENOMEM);
        }
 
        blocks->start = start;