OSDN Git Service

Use _size
authorAlan Hourihane <alanh@tungstengraphics.com>
Mon, 5 Nov 2007 10:02:46 +0000 (10:02 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Mon, 5 Nov 2007 10:02:46 +0000 (10:02 +0000)
linux-core/drm_compat.h

index 0895e5e..f861abf 100644 (file)
@@ -159,7 +159,7 @@ static __inline__ void *kcalloc(size_t nmemb, size_t size, int flags)
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
 #define vmalloc_user(_size) ({void * tmp = vmalloc(_size);   \
-      if (tmp) memset(tmp, 0, size);                        \
+      if (tmp) memset(tmp, 0, _size);                       \
       (tmp);})
 #endif