projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mediatek: unify Kconfig with other vendors
[cascardo/linux.git]
/
kernel
/
audit.c
diff --git
a/kernel/audit.c
b/kernel/audit.c
index
8a056a3
..
5ffcbd3
100644
(file)
--- a/
kernel/audit.c
+++ b/
kernel/audit.c
@@
-1371,16
+1371,16
@@
struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask,
if (unlikely(audit_filter_type(type)))
return NULL;
if (unlikely(audit_filter_type(type)))
return NULL;
- if (gfp_mask & __GFP_
WAIT
) {
+ if (gfp_mask & __GFP_
DIRECT_RECLAIM
) {
if (audit_pid && audit_pid == current->pid)
if (audit_pid && audit_pid == current->pid)
- gfp_mask &= ~__GFP_
WAIT
;
+ gfp_mask &= ~__GFP_
DIRECT_RECLAIM
;
else
reserve = 0;
}
while (audit_backlog_limit
&& skb_queue_len(&audit_skb_queue) > audit_backlog_limit + reserve) {
else
reserve = 0;
}
while (audit_backlog_limit
&& skb_queue_len(&audit_skb_queue) > audit_backlog_limit + reserve) {
- if (gfp_mask & __GFP_
WAIT
&& audit_backlog_wait_time) {
+ if (gfp_mask & __GFP_
DIRECT_RECLAIM
&& audit_backlog_wait_time) {
long sleep_time;
sleep_time = timeout_start + audit_backlog_wait_time - jiffies;
long sleep_time;
sleep_time = timeout_start + audit_backlog_wait_time - jiffies;