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
LU-9679 all: prefer sizeof(*var) for ALLOC/FREE
[fs/lustre-release.git]
/
lustre
/
osd-zfs
/
osd_oi.c
diff --git
a/lustre/osd-zfs/osd_oi.c
b/lustre/osd-zfs/osd_oi.c
index
efcafe4
..
e4244dc
100644
(file)
--- a/
lustre/osd-zfs/osd_oi.c
+++ b/
lustre/osd-zfs/osd_oi.c
@@
-922,7
+922,7
@@
int osd_oi_init(const struct lu_env *env, struct osd_device *o)
open:
LASSERT((count & (count - 1)) == 0);
o->od_oi_count = count;
- OBD_ALLOC(o->od_oi_table, sizeof(
struct osd_oi *
) * count);
+ OBD_ALLOC(o->od_oi_table, sizeof(
*o->od_oi_table
) * count);
if (o->od_oi_table == NULL)
GOTO(out, rc = -ENOMEM);