projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e81cc1
)
kernel/auditsc.c: fix an off-by-one
author
Adrian Bunk
<
[email protected]
>
Wed, 22 Aug 2007 21:01:05 +0000
(14:01 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 23 Aug 2007 02:52:44 +0000
(19:52 -0700)
This patch fixes an off-by-one in a BUG_ON() spotted by the Coverity
checker.
Signed-off-by: Adrian Bunk <
[email protected]
>
Cc: Amy Griffis <
[email protected]
>
Cc: Al Viro <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/auditsc.c
patch
|
blob
|
history
diff --git
a/kernel/auditsc.c
b/kernel/auditsc.c
index 3401293359e82f7bff1c9b3beb3d87e3e23707ae..04f3ffb8d9d4adfd03b314db621f43c8c3ab11fe 100644
(file)
--- a/
kernel/auditsc.c
+++ b/
kernel/auditsc.c
@@
-2023,7
+2023,7
@@
int __audit_signal_info(int sig, struct task_struct *t)
axp->d.next = ctx->aux_pids;
ctx->aux_pids = (void *)axp;
}
- BUG_ON(axp->pid_count > AUDIT_AUX_PIDS);
+ BUG_ON(axp->pid_count >
=
AUDIT_AUX_PIDS);
axp->target_pid[axp->pid_count] = t->tgid;
selinux_get_task_sid(t, &axp->target_sid[axp->pid_count]);