Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f811c
)
Don't oops if data->ioc_inlbuf1 is not set.
author
adilger
<adilger>
Thu, 24 Oct 2002 21:30:22 +0000
(21:30 +0000)
committer
adilger
<adilger>
Thu, 24 Oct 2002 21:30:22 +0000
(21:30 +0000)
lustre/obdclass/class_obd.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/class_obd.c
b/lustre/obdclass/class_obd.c
index
6d67c32
..
af17bf7
100644
(file)
--- a/
lustre/obdclass/class_obd.c
+++ b/
lustre/obdclass/class_obd.c
@@
-777,8
+777,8
@@
static int obd_class_ioctl (struct inode * inode, struct file * filp,
CERROR("OBD device %d not attached\n", obd->obd_minor);
GOTO(out, err=-ENODEV);
}
- if (!list_empty(&obd->obd_exports)
) {
- if (data->ioc_inlbuf1[0] != 'F') {
+ if (!list_empty(&obd->obd_exports)) {
+ if (
!data->ioc_inlbuf1 ||
data->ioc_inlbuf1[0] != 'F') {
CERROR("OBD device %d (%p) has exports\n",
obd->obd_minor, obd);
GOTO(out, err=-EBUSY);