diff options
author | Luis Henriques <luis.henriques@canonical.com> | 2014-04-03 14:49:34 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 16:21:16 -0700 |
commit | b003f9650210fa1b3caea43201852bf2d9df7689 (patch) | |
tree | 0e325bfc35c3f982b1ecc0f66b9440ac705e85a2 /fs | |
parent | 7a42d4b6a10c93ff15cff4f09c5a2d65877fa6ba (diff) | |
download | blackbird-op-linux-b003f9650210fa1b3caea43201852bf2d9df7689.tar.gz blackbird-op-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 'fs')
-rw-r--r-- | fs/binfmt_misc.c | 1 |
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; |