All of lore.kernel.org
 help / color / mirror / Atom feed
* + binfmt_misc-add-missing-break-statement.patch added to -mm tree
@ 2014-03-28 23:05 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2014-03-28 23:05 UTC (permalink / raw)
  To: mm-commits, luis.henriques

Subject: + binfmt_misc-add-missing-break-statement.patch added to -mm tree
To: luis.henriques@canonical.com
From: akpm@linux-foundation.org
Date: Fri, 28 Mar 2014 16:05:51 -0700


The patch titled
     Subject: binfmt_misc: add missing 'break' statement
has been added to the -mm tree.  Its filename is
     binfmt_misc-add-missing-break-statement.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/binfmt_misc-add-missing-break-statement.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/binfmt_misc-add-missing-break-statement.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Luis Henriques <luis.henriques@canonical.com>
Subject: 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>
---

 fs/binfmt_misc.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN fs/binfmt_misc.c~binfmt_misc-add-missing-break-statement fs/binfmt_misc.c
--- a/fs/binfmt_misc.c~binfmt_misc-add-missing-break-statement
+++ a/fs/binfmt_misc.c
@@ -656,6 +656,7 @@ static ssize_t bm_status_write(struct fi
 
 			mutex_unlock(&root->d_inode->i_mutex);
 			dput(root);
+			break;
 		default: return res;
 	}
 	return count;
_

Patches currently in -mm which might be from luis.henriques@canonical.com are

binfmt_misc-add-missing-break-statement.patch
linux-next.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-28 23:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-28 23:05 + binfmt_misc-add-missing-break-statement.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.