Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263250
b: refs/heads/master
c: c2183d1
h: refs/heads/master
v: v3
  • Loading branch information
Miklos Szeredi committed Aug 24, 2011
1 parent e42dda1 commit 5b27a56
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: 478e0841b3dce3edc2c67bf0fc51af30f582e9e2
refs/heads/master: c2183d1e9b3f313dd8ba2b1b0197c8d9fb86a7ae
4 changes: 4 additions & 0 deletions trunk/fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,10 @@ static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size,
if (outarg.namelen > FUSE_NAME_MAX)
goto err;

err = -EINVAL;
if (size != sizeof(outarg) + outarg.namelen + 1)
goto err;

name.name = buf;
name.len = outarg.namelen;
err = fuse_copy_one(cs, buf, outarg.namelen + 1);
Expand Down

0 comments on commit 5b27a56

Please sign in to comment.