diff options
Diffstat (limited to 'fs/ceph/super.c')
| -rw-r--r-- | fs/ceph/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 7d377c9a5e35..6627b26a800c 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c | |||
| @@ -357,7 +357,7 @@ static int parse_mount_options(struct ceph_mount_options **pfsopt, | |||
| 357 | } | 357 | } |
| 358 | err = -EINVAL; | 358 | err = -EINVAL; |
| 359 | dev_name_end--; /* back up to ':' separator */ | 359 | dev_name_end--; /* back up to ':' separator */ |
| 360 | if (*dev_name_end != ':') { | 360 | if (dev_name_end < dev_name || *dev_name_end != ':') { |
| 361 | pr_err("device name is missing path (no : separator in %s)\n", | 361 | pr_err("device name is missing path (no : separator in %s)\n", |
| 362 | dev_name); | 362 | dev_name); |
| 363 | goto out; | 363 | goto out; |
