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:
65db676
)
- fixed possible access to of bounds in cmobd
author
yury
<yury>
Tue, 12 Jul 2005 06:14:49 +0000
(06:14 +0000)
committer
yury
<yury>
Tue, 12 Jul 2005 06:14:49 +0000
(06:14 +0000)
lustre/cmobd/cm_obd.c
patch
|
blob
|
history
diff --git
a/lustre/cmobd/cm_obd.c
b/lustre/cmobd/cm_obd.c
index
b44903f
..
a7ed17c
100644
(file)
--- a/
lustre/cmobd/cm_obd.c
+++ b/
lustre/cmobd/cm_obd.c
@@
-105,9
+105,8
@@
cmobd_find_obd(struct obd_device *obd, struct obd_uuid *uuid)
CWARN("%s: looking for client obd %s\n",
obd->obd_uuid.uuid, uuid->uuid);
- for (i = 0; i < sizeof(types); i++) {
- res = class_find_client_obd(NULL, types[i],
- uuid);
+ for (i = 0; i < sizeof(types) / sizeof(char *); i++) {
+ res = class_find_client_obd(NULL, types[i], uuid);
if (res)
RETURN(res);
}