A missing 'break' statement in function bm_status_write() results in a user program to receive '3' when doing the following:
write(fd, "-1", 2); Signed-off-by: Luis Henriques <[email protected]> --- fs/binfmt_misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 1c740e1..b605003 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; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

