aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/audit_tree.c3
-rw-r--r--kernel/audit_watch.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c
index e3d63b596ef0..59065e72a2eb 100644
--- a/kernel/audit_tree.c
+++ b/kernel/audit_tree.c
@@ -937,8 +937,7 @@ static int __init audit_tree_init(void)
937{ 937{
938 int i; 938 int i;
939 939
940 audit_tree_group = fsnotify_obtain_group(AUDIT_TREE_GROUP_NUM, 940 audit_tree_group = fsnotify_obtain_group(0, &audit_tree_ops);
941 0, &audit_tree_ops);
942 if (IS_ERR(audit_tree_group)) 941 if (IS_ERR(audit_tree_group))
943 audit_panic("cannot initialize fsnotify group for rectree watches"); 942 audit_panic("cannot initialize fsnotify group for rectree watches");
944 943
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c
index 85c43aa292e0..c500104d38c2 100644
--- a/kernel/audit_watch.c
+++ b/kernel/audit_watch.c
@@ -577,7 +577,7 @@ static const struct fsnotify_ops audit_watch_fsnotify_ops = {
577 577
578static int __init audit_watch_init(void) 578static int __init audit_watch_init(void)
579{ 579{
580 audit_watch_group = fsnotify_obtain_group(AUDIT_WATCH_GROUP_NUM, AUDIT_FS_WATCH, 580 audit_watch_group = fsnotify_obtain_group(AUDIT_FS_WATCH,
581 &audit_watch_fsnotify_ops); 581 &audit_watch_fsnotify_ops);
582 if (IS_ERR(audit_watch_group)) { 582 if (IS_ERR(audit_watch_group)) {
583 audit_watch_group = NULL; 583 audit_watch_group = NULL;