summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_misc.c
diff options
context:
space:
mode:
authorLuis Henriques <luis.henriques@canonical.com>2014-04-03 23:49:34 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-04 01:21:16 +0200
commitb003f9650210fa1b3caea43201852bf2d9df7689 (patch)
tree0e325bfc35c3f982b1ecc0f66b9440ac705e85a2 /fs/binfmt_misc.c
parentfs/efs/super.c: add __init to init_inodecache() (diff)
downloadlinux-b003f9650210fa1b3caea43201852bf2d9df7689.tar.xz
linux-b003f9650210fa1b3caea43201852bf2d9df7689.zip
binfmt_misc: add missing 'break' statement
A missing 'break' statement in bm_status_write() results in a user program receiving '3' when doing the following: write(fd, "-1", 2); Signed-off-by: Luis Henriques <luis.henriques@canonical.com> Alexander Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--fs/binfmt_misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index 1c740e152f38..b60500300dd7 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -656,6 +656,7 @@ static ssize_t bm_status_write(struct file * file, const char __user * buffer,
mutex_unlock(&root->d_inode->i_mutex);
dput(root);
+ break;
default: return res;
}
return count;