Rev 3538 | Rev 3625 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3538 | Rev 3575 | ||
---|---|---|---|
Line 77... | Line 77... | ||
77 | case TMPFS_FILE: |
77 | case TMPFS_FILE: |
78 | fname = malloc(entry.len + 1); |
78 | fname = malloc(entry.len + 1); |
79 | if (fname == NULL) |
79 | if (fname == NULL) |
80 | return false; |
80 | return false; |
81 | 81 | ||
82 | node = (tmpfs_dentry_t *) ops->create(L_FILE); |
82 | node = (tmpfs_dentry_t *) ops->create(dev, L_FILE); |
83 | if (node == NULL) { |
83 | if (node == NULL) { |
84 | free(fname); |
84 | free(fname); |
85 | return false; |
85 | return false; |
86 | } |
86 | } |
87 | 87 | ||
Line 119... | Line 119... | ||
119 | case TMPFS_DIRECTORY: |
119 | case TMPFS_DIRECTORY: |
120 | fname = malloc(entry.len + 1); |
120 | fname = malloc(entry.len + 1); |
121 | if (fname == NULL) |
121 | if (fname == NULL) |
122 | return false; |
122 | return false; |
123 | 123 | ||
124 | node = (tmpfs_dentry_t *) ops->create(L_DIRECTORY); |
124 | node = (tmpfs_dentry_t *) ops->create(dev, L_DIRECTORY); |
125 | if (node == NULL) { |
125 | if (node == NULL) { |
126 | free(fname); |
126 | free(fname); |
127 | return false; |
127 | return false; |
128 | } |
128 | } |
129 | 129 |