]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/nfsd/nfscache.c
[PATCH] horizon.c: missing __devinit
[mv-sheeva.git] / fs / nfsd / nfscache.c
index 6100bbe27432d6b6f826733a47b3a87dfdbc3041..f90d70475854f5b85f2f20a5bc61a1821a6cae37 100644 (file)
@@ -66,14 +66,13 @@ nfsd_cache_init(void)
                printk (KERN_ERR "nfsd: cannot allocate all %d cache entries, only got %d\n",
                        CACHESIZE, CACHESIZE-i);
 
-       hash_list = kmalloc (HASHSIZE * sizeof(struct hlist_head), GFP_KERNEL);
+       hash_list = kcalloc (HASHSIZE, sizeof(struct hlist_head), GFP_KERNEL);
        if (!hash_list) {
                nfsd_cache_shutdown();
                printk (KERN_ERR "nfsd: cannot allocate %Zd bytes for hash list\n",
                        HASHSIZE * sizeof(struct hlist_head));
                return;
        }
-       memset(hash_list, 0, HASHSIZE * sizeof(struct hlist_head));
 
        cache_disabled = 0;
 }