Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126361
b: refs/heads/master
c: bae8ec6
h: refs/heads/master
i:
  126359: 546ebe2
v: v3
  • Loading branch information
Ian Kent authored and Linus Torvalds committed Jan 6, 2009
1 parent 5bf1623 commit 912f61e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a92daf6ba1f9ace8584edc8eb557a77aa7c2c71d
refs/heads/master: bae8ec66554b27967f057a4b7888b09481ff1b8b
13 changes: 7 additions & 6 deletions trunk/fs/autofs4/dev-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static inline void free_dev_ioctl(struct autofs_dev_ioctl *param)

/*
* Check sanity of parameter control fields and if a path is present
* check that it has a "/" and is terminated.
* check that it is terminated and contains at least one "/".
*/
static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param)
{
Expand All @@ -138,15 +138,16 @@ static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param)
}

if (param->size > sizeof(*param)) {
err = check_name(param->path);
err = invalid_str(param->path,
(void *) ((size_t) param + param->size));
if (err) {
AUTOFS_WARN("invalid path supplied for cmd(0x%08x)",
cmd);
AUTOFS_WARN(
"path string terminator missing for cmd(0x%08x)",
cmd);
goto out;
}

err = invalid_str(param->path,
(void *) ((size_t) param + param->size));
err = check_name(param->path);
if (err) {
AUTOFS_WARN("invalid path supplied for cmd(0x%08x)",
cmd);
Expand Down

0 comments on commit 912f61e

Please sign in to comment.