aboutsummaryrefslogtreecommitdiffstats
path: root/modules/spl
diff options
context:
space:
mode:
Diffstat (limited to 'modules/spl')
-rw-r--r--modules/spl/spl-module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/spl/spl-module.c b/modules/spl/spl-module.c
index 309188ce5..59183d864 100644
--- a/modules/spl/spl-module.c
+++ b/modules/spl/spl-module.c
@@ -56,7 +56,7 @@ __ddi_create_minor_node(dev_info_t *di, char *name, int spec_type,
BUG_ON(strcmp(node_type, DDI_PSEUDO));
BUG_ON(flag != 0);
- fops = kmalloc(sizeof(struct file_operations), GFP_KERNEL);
+ fops = kzalloc(sizeof(struct file_operations), GFP_KERNEL);
if (fops == NULL)
return DDI_FAILURE;