X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fauditsc.c;h=04f3ffb8d9d4adfd03b314db621f43c8c3ab11fe;hb=d385376f0d75fdbeed8041ed6baf5cb4a1578ffb;hp=3401293359e82f7bff1c9b3beb3d87e3e23707ae;hpb=175fc484256e9c85e043f599ec2f6bc0d2e6c443;p=linux-2.6 diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 3401293359..04f3ffb8d9 100644 --- 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]);