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 target: use OBD_ALLOC_PTR_ARRAY() and FREE
[fs/lustre-release.git]
/
lustre
/
target
/
tgt_main.c
diff --git
a/lustre/target/tgt_main.c
b/lustre/target/tgt_main.c
index
bdd05e7
..
b774eb0
100644
(file)
--- a/
lustre/target/tgt_main.c
+++ b/
lustre/target/tgt_main.c
@@
-663,8
+663,7
@@
static void tgt_key_fini(const struct lu_context *ctx,
}
if (args->ta_args != NULL)
- OBD_FREE(args->ta_args, sizeof(args->ta_args[0]) *
- args->ta_alloc_args);
+ OBD_FREE_PTR_ARRAY(args->ta_args, args->ta_alloc_args);
OBD_SLAB_FREE_PTR(info, tgt_thread_kmem);
}