diff options
author | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-04-01 03:24:17 +0000 |
---|---|---|
committer | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-04-01 03:24:17 +0000 |
commit | e966e04fd52e0a80ec191b8f784d84b436877667 (patch) | |
tree | e4e0ca49e72d98b0b2c755c926095abfa05ef8e9 /modules/spl | |
parent | 4fd2f7eea565ee473ac433f28c1b309999abbd19 (diff) |
Ensure all file ops pointer are NULL or we may end up
calling garbage pointers on open/close etc and get
what look like random crashes.
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@61 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'modules/spl')
-rw-r--r-- | modules/spl/spl-module.c | 2 |
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; |