OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kasan: allow enabling KASAN_VMALLOC and SW/HW_TAGS
[uclinux-h8/linux.git]
/
kernel
/
audit_tree.c
diff --git
a/kernel/audit_tree.c
b/kernel/audit_tree.c
index
72324af
..
e7315d4
100644
(file)
--- a/
kernel/audit_tree.c
+++ b/
kernel/audit_tree.c
@@
-94,7
+94,7
@@
static struct audit_tree *alloc_tree(const char *s)
{
struct audit_tree *tree;
- tree = kmalloc(s
izeof(struct audit_tree) + strlen(s) + 1
, GFP_KERNEL);
+ tree = kmalloc(s
truct_size(tree, pathname, strlen(s) + 1)
, GFP_KERNEL);
if (tree) {
refcount_set(&tree->count, 1);
tree->goner = 0;