ceph: don't crash when passed bad mount options

This only happened when parse_extra_token was not passed
to ceph_parse_option() (hence, only happened in rbd).

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>

authored by Yehuda Sadeh and committed by Sage Weil 010e3b48 6f453ed6

+1 -1
+1 -1
net/ceph/ceph_common.c
··· 249 249 continue; 250 250 err = -EINVAL; 251 251 token = match_token((char *)c, opt_tokens, argstr); 252 - if (token < 0) { 252 + if (token < 0 && parse_extra_token) { 253 253 /* extra? */ 254 254 err = parse_extra_token((char *)c, private); 255 255 if (err < 0) {