diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/auditsc.c | 22 | ||||
| -rw-r--r-- | kernel/irq/resend.c | 9 |
2 files changed, 11 insertions, 20 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index a777d3761416..3401293359e8 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
| @@ -1992,19 +1992,19 @@ int __audit_signal_info(int sig, struct task_struct *t) | |||
| 1992 | extern uid_t audit_sig_uid; | 1992 | extern uid_t audit_sig_uid; |
| 1993 | extern u32 audit_sig_sid; | 1993 | extern u32 audit_sig_sid; |
| 1994 | 1994 | ||
| 1995 | if (audit_pid && t->tgid == audit_pid && | 1995 | if (audit_pid && t->tgid == audit_pid) { |
| 1996 | (sig == SIGTERM || sig == SIGHUP || sig == SIGUSR1)) { | 1996 | if (sig == SIGTERM || sig == SIGHUP || sig == SIGUSR1) { |
| 1997 | audit_sig_pid = tsk->pid; | 1997 | audit_sig_pid = tsk->pid; |
| 1998 | if (ctx) | 1998 | if (ctx) |
| 1999 | audit_sig_uid = ctx->loginuid; | 1999 | audit_sig_uid = ctx->loginuid; |
| 2000 | else | 2000 | else |
| 2001 | audit_sig_uid = tsk->uid; | 2001 | audit_sig_uid = tsk->uid; |
| 2002 | selinux_get_task_sid(tsk, &audit_sig_sid); | 2002 | selinux_get_task_sid(tsk, &audit_sig_sid); |
| 2003 | } | ||
| 2004 | if (!audit_signals || audit_dummy_context()) | ||
| 2005 | return 0; | ||
| 2003 | } | 2006 | } |
| 2004 | 2007 | ||
| 2005 | if (!audit_signals) /* audit_context checked in wrapper */ | ||
| 2006 | return 0; | ||
| 2007 | |||
| 2008 | /* optimize the common case by putting first signal recipient directly | 2008 | /* optimize the common case by putting first signal recipient directly |
| 2009 | * in audit_context */ | 2009 | * in audit_context */ |
| 2010 | if (!ctx->target_pid) { | 2010 | if (!ctx->target_pid) { |
diff --git a/kernel/irq/resend.c b/kernel/irq/resend.c index c38272746887..5bfeaed7e487 100644 --- a/kernel/irq/resend.c +++ b/kernel/irq/resend.c | |||
| @@ -62,15 +62,6 @@ void check_irq_resend(struct irq_desc *desc, unsigned int irq) | |||
| 62 | */ | 62 | */ |
| 63 | desc->chip->enable(irq); | 63 | desc->chip->enable(irq); |
| 64 | 64 | ||
| 65 | /* | ||
| 66 | * Temporary hack to figure out more about the problem, which | ||
| 67 | * is causing the ancient network cards to die. | ||
| 68 | */ | ||
| 69 | if (desc->handle_irq != handle_edge_irq) { | ||
| 70 | WARN_ON_ONCE(1); | ||
| 71 | return; | ||
| 72 | } | ||
| 73 | |||
| 74 | if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) { | 65 | if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) { |
| 75 | desc->status = (status & ~IRQ_PENDING) | IRQ_REPLAY; | 66 | desc->status = (status & ~IRQ_PENDING) | IRQ_REPLAY; |
| 76 | 67 | ||
