Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
The noncontroversial portion of the last few days of changes:
[fs/lustre-release.git]
/
lustre
/
mds
/
handler.c
diff --git
a/lustre/mds/handler.c
b/lustre/mds/handler.c
index
652cf8f
..
2cb85ff
100644
(file)
--- a/
lustre/mds/handler.c
+++ b/
lustre/mds/handler.c
@@
-510,6
+510,9
@@
static int mds_setup(struct obd_device *obddev, obd_count len, void *buf)
#ifdef CONFIG_DEV_RDONLY
dev_clear_rdonly(2);
#endif
+ if (!data->ioc_inlbuf1 || !data->ioc_inlbuf2)
+ RETURN(-EINVAL);
+
mds->mds_fstype = strdup(data->ioc_inlbuf2);
if (!strcmp(mds->mds_fstype, "ext3"))