Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114885
b: refs/heads/master
c: d38b7aa
h: refs/heads/master
i:
  114883: 5bffa94
v: v3
  • Loading branch information
Eric Sesterhenn authored and Linus Torvalds committed Oct 16, 2008
1 parent d59af48 commit 3024f1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 649f1ee6c705aab644035a7998d7b574193a598a
refs/heads/master: d38b7aa7fc3371b52d036748028db50b585ade2e
4 changes: 4 additions & 0 deletions trunk/fs/hfs/catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ int hfs_cat_find_brec(struct super_block *sb, u32 cnid,

fd->search_key->cat.ParID = rec.thread.ParID;
len = fd->search_key->cat.CName.len = rec.thread.CName.len;
if (len > HFS_NAMELEN) {
printk(KERN_ERR "hfs: bad catalog namelength\n");
return -EIO;
}
memcpy(fd->search_key->cat.CName.name, rec.thread.CName.name, len);
return hfs_brec_find(fd);
}
Expand Down

0 comments on commit 3024f1c

Please sign in to comment.