Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326219
b: refs/heads/master
c: 2b75bc9
h: refs/heads/master
i:
  326217: 28773fd
  326215: 4e8b76e
v: v3
  • Loading branch information
Sasha Levin authored and David Teigland committed Sep 10, 2012
1 parent dc52e06 commit 4bf267d
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 9c5bef5849c9fde1a37ac005299f759440cbaf4c
refs/heads/master: 2b75bc9121e54e22537207b47b71373bcb0be41c
7 changes: 7 additions & 0 deletions trunk/fs/dlm/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,13 @@ static ssize_t device_write(struct file *file, const char __user *buf,
#endif
return -EINVAL;

#ifdef CONFIG_COMPAT
if (count > sizeof(struct dlm_write_request32) + DLM_RESNAME_MAXLEN)
#else
if (count > sizeof(struct dlm_write_request) + DLM_RESNAME_MAXLEN)
#endif
return -EINVAL;

kbuf = kzalloc(count + 1, GFP_NOFS);
if (!kbuf)
return -ENOMEM;
Expand Down

0 comments on commit 4bf267d

Please sign in to comment.