Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84892
b: refs/heads/master
c: 043b19c
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and David Teigland committed Feb 4, 2008
1 parent fa0151e commit 711aee9
Show file tree
Hide file tree
Showing 2 changed files with 4 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: a9cc9159281d44754f621f75d4efad0076b29db4
refs/heads/master: 043b19cdc081f586a8f4e1c93ce6c03b63c26284
3 changes: 3 additions & 0 deletions trunk/fs/dlm/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ static int get_entry(struct dlm_ls *ls, int nodeid, char *name,

write_unlock(&ls->ls_dirtbl[bucket].lock);

if (namelen > DLM_RESNAME_MAXLEN)
return -EINVAL;

de = kzalloc(sizeof(struct dlm_direntry) + namelen, GFP_KERNEL);
if (!de)
return -ENOMEM;
Expand Down

0 comments on commit 711aee9

Please sign in to comment.