Whamcloud - gitweb
LU-3641 libcfs: Zero fill shrinker struct in cfs_set_shrinker
[fs/lustre-release.git] / libcfs / include / libcfs / linux / linux-mem.h
index 43e4f5c..3554dfe 100644 (file)
@@ -128,7 +128,7 @@ struct shrinker *set_shrinker(int seek, shrinker_t func)
 {
         struct shrinker *s;
 
-        s = kmalloc(sizeof(*s), GFP_KERNEL);
+       s = kzalloc(sizeof(*s), GFP_KERNEL);
         if (s == NULL)
                 return (NULL);