Rev 2881 | Rev 2891 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2881 | Rev 2890 | ||
---|---|---|---|
Line 306... | Line 306... | ||
306 | dentry_name_canonify(d, name); |
306 | dentry_name_canonify(d, name); |
307 | break; |
307 | break; |
308 | } |
308 | } |
309 | if (strcmp(name, component) == 0) { |
309 | if (strcmp(name, component) == 0) { |
310 | /* hit */ |
310 | /* hit */ |
311 | fat_idx_t *idx = fat_idx_map( |
311 | fat_idx_t *idx = fat_idx_get_by_pos( |
312 | parentp->idx->dev_handle, parentp->firstc, |
312 | parentp->idx->dev_handle, parentp->firstc, |
313 | i * dps + j); |
313 | i * dps + j); |
- | 314 | if (!idx) { |
|
- | 315 | /* |
|
- | 316 | * Can happen if memory is low or if we |
|
- | 317 | * run out of 32-bit indices. |
|
- | 318 | */ |
|
- | 319 | block_put(b); |
|
- | 320 | return NULL; |
|
- | 321 | } |
|
314 | void *node = fat_node_get(idx->dev_handle, |
322 | void *node = fat_node_get(idx->dev_handle, |
315 | idx->index); |
323 | idx->index); |
316 | block_put(b); |
324 | block_put(b); |
317 | return node; |
325 | return node; |
318 | } |
326 | } |