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 1d70be8..cb7c74f 100644 (file)
@@ -200,7 +200,7 @@ struct cfs_shrinker *cfs_set_shrinker(int seek, cfs_shrinker_t func)
 {
         struct shrinker *s;
 
-        s = kmalloc(sizeof(*s), GFP_KERNEL);
+       s = kzalloc(sizeof(*s), GFP_KERNEL);
         if (s == NULL)
                 return (NULL);