libceph: stop parsing when a bad int arg is detected
authorChengguang Xu <cgxu519@gmx.com>
Wed, 27 Jun 2018 13:05:08 +0000 (21:05 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 2 Aug 2018 19:26:11 +0000 (21:26 +0200)
commit17173c82e3daa28742bf7732520e9bc2e0cb977d
tree06f1d1ec84aae800a65c6c7b9ce46680ee533560
parentc9ed51c9123ab5e8f79b7d53a9afd786b43d4fe6
libceph: stop parsing when a bad int arg is detected

There is no reason to continue option parsing after detecting
bad option.

[ Return match_int() errors from ceph_parse_options() to match the
  behaviour of parse_rbd_opts_token() and parse_fsopt_token(). ]

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/ceph_common.c