There is no reason to continue option parsing after detecting bad option. Signed-off-by: Chengguang Xu <cgxu519@xxxxxxx> --- net/ceph/ceph_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c index 584fdbef2088..a75f1640f50a 100644 --- a/net/ceph/ceph_common.c +++ b/net/ceph/ceph_common.c @@ -398,7 +398,7 @@ ceph_parse_options(char *options, const char *dev_name, if (ret < 0) { pr_err("bad mount option arg (not int) " "at '%s'\n", c); - continue; + goto out; } dout("got int token %d val %d\n", token, intval); } else if (token > Opt_last_int && token < Opt_last_string) { -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html