Skip to content
Snippets Groups Projects
Commit 993e2d41 authored by David Woodhouse's avatar David Woodhouse
Browse files

AUDIT: Return correct result from audit_filter_rules()


When the task refcounting was added to audit_filter_rules() it became
more of a problem that this function was violating the 'only one 
return from each function' rule. In fixing it to use a variable to store 
'ret' I stupidly neglected to actually change the 'return 1;' at the 
end. This makes it not work very well.

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 9e94e66a
No related branches found
No related tags found
No related merge requests found
......@@ -557,7 +557,7 @@ int audit_filter_user(int pid, int type)
rcu_read_unlock();
put_task_struct(tsk);
return 1; /* Audit by default */
return ret; /* Audit by default */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment