Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42954
b: refs/heads/master
c: 4a08a9f
h: refs/heads/master
v: v3
  • Loading branch information
Yan Burman authored and Linus Torvalds committed Dec 7, 2006
1 parent 132c804 commit 85ca97a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0172a6dd906cf813cd56aeb133a85abf9a36c8e
refs/heads/master: 4a08a9f68168e547c2baf100020e9b96cae5fbd1
3 changes: 1 addition & 2 deletions trunk/fs/jffs/intrep.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ jffs_add_virtual_root(struct jffs_control *c)
D2(printk("jffs_add_virtual_root(): "
"Creating a virtual root directory.\n"));

if (!(root = kmalloc(sizeof(struct jffs_file), GFP_KERNEL))) {
if (!(root = kzalloc(sizeof(struct jffs_file), GFP_KERNEL))) {
return -ENOMEM;
}
no_jffs_file++;
Expand All @@ -604,7 +604,6 @@ jffs_add_virtual_root(struct jffs_control *c)
DJM(no_jffs_node++);
memset(node, 0, sizeof(struct jffs_node));
node->ino = JFFS_MIN_INO;
memset(root, 0, sizeof(struct jffs_file));
root->ino = JFFS_MIN_INO;
root->mode = S_IFDIR | S_IRWXU | S_IRGRP
| S_IXGRP | S_IROTH | S_IXOTH;
Expand Down

0 comments on commit 85ca97a

Please sign in to comment.