projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc9c406
)
autofs4: collect version check return
author
Ian Kent
<
[email protected]
>
Thu, 6 Nov 2008 20:53:23 +0000
(12:53 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 6 Nov 2008 23:41:17 +0000
(15:41 -0800)
The function check_dev_ioctl_version() returns an error code upon fail but
it isn't captured and returned in validate_dev_ioctl() as it should be.
[
[email protected]
: coding-style fixes]
Signed-off-by: Ian Kent <
[email protected]
>
Signed-off-by: Jeff Moyer <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/autofs4/dev-ioctl.c
patch
|
blob
|
history
diff --git
a/fs/autofs4/dev-ioctl.c
b/fs/autofs4/dev-ioctl.c
index 625abf5422e2bb5f721b8921c0c89a2a5bec40a6..33bf8cbfd05172cc020200d4f4eec08d23eab420 100644
(file)
--- a/
fs/autofs4/dev-ioctl.c
+++ b/
fs/autofs4/dev-ioctl.c
@@
-128,9
+128,10
@@
static inline void free_dev_ioctl(struct autofs_dev_ioctl *param)
*/
static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param)
{
- int err
= -EINVAL
;
+ int err;
- if (check_dev_ioctl_version(cmd, param)) {
+ err = check_dev_ioctl_version(cmd, param);
+ if (err) {
AUTOFS_WARN("invalid device control module version "
"supplied for cmd(0x%08x)", cmd);
goto out;