aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/locking
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/locking')
-rw-r--r--fs/gfs2/locking/dlm/mount.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/gfs2/locking/dlm/mount.c b/fs/gfs2/locking/dlm/mount.c
index 41c5b04caab..ab301023094 100644
--- a/fs/gfs2/locking/dlm/mount.c
+++ b/fs/gfs2/locking/dlm/mount.c
@@ -67,6 +67,12 @@ static int make_args(struct gdlm_ls *ls, char *data_arg, int *nodir)
67 memset(data, 0, 256); 67 memset(data, 0, 256);
68 strncpy(data, data_arg, 255); 68 strncpy(data, data_arg, 255);
69 69
70 if (!strlen(data)) {
71 printk(KERN_ERR
72 "DLM/GFS2/GFS ERROR: (u)mount helpers are not installed!\n");
73 return -EINVAL;
74 }
75
70 for (options = data; (x = strsep(&options, ":")); ) { 76 for (options = data; (x = strsep(&options, ":")); ) {
71 if (!*x) 77 if (!*x)
72 continue; 78 continue;