X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fcoda%2Fcoda_linux.h;h=cc0ea9fe5ecf9af0ee79bfcd1b2ecdfdc4ac81da;hb=1a1e8c6fada5f6dc48aa5dad453c9d9ebfdc8218;hp=44e17e9c21ae0a16e3c27b6a17e7e5be4bcab4f7;hpb=efb90582c575084723cc14302c1300cb26c7e01f;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/coda/coda_linux.h b/fs/coda/coda_linux.h index 44e17e9c21ae..cc0ea9fe5ecf 100644 --- a/fs/coda/coda_linux.h +++ b/fs/coda/coda_linux.h @@ -59,12 +59,11 @@ void coda_sysctl_clean(void); #define CODA_ALLOC(ptr, cast, size) do { \ if (size < PAGE_SIZE) \ - ptr = kmalloc((unsigned long) size, GFP_KERNEL); \ + ptr = kzalloc((unsigned long) size, GFP_KERNEL); \ else \ - ptr = (cast)vmalloc((unsigned long) size); \ + ptr = (cast)vzalloc((unsigned long) size); \ if (!ptr) \ printk("kernel malloc returns 0 at %s:%d\n", __FILE__, __LINE__); \ - else memset( ptr, 0, size ); \ } while (0)