From 7f4d526dd46a0482b2b24dd506328181580ca309 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Tue, 19 Feb 2008 01:41:24 +0100 Subject: [PATCH] --- yaml --- r: 85779 b: refs/heads/master c: 899e1bc57340ad9acf5561b1eff7a684975ad800 h: refs/heads/master i: 85777: 3b60384bf6dc216a9b5e514581e9751a03a7215a 85775: f456e7444e3c697d40ed10dbba7b07593961e8ed v: v3 --- [refs] | 2 +- trunk/drivers/ide/legacy/falconide.c | 2 +- trunk/drivers/ide/legacy/macide.c | 2 +- trunk/kernel/auditsc.c | 5 +---- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 1c2349c6d9f2..fe90d3ecb589 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b0abcfc14605b2a8c686bd8e193ab05b01a7980b +refs/heads/master: 899e1bc57340ad9acf5561b1eff7a684975ad800 diff --git a/trunk/drivers/ide/legacy/falconide.c b/trunk/drivers/ide/legacy/falconide.c index f044048903b3..07bf1294a9db 100644 --- a/trunk/drivers/ide/legacy/falconide.c +++ b/trunk/drivers/ide/legacy/falconide.c @@ -54,7 +54,7 @@ static void __init falconide_setup_ports(hw_regs_t *hw) for (i = 1; i < 8; i++) hw->io_ports[i] = ATA_HD_BASE + 1 + i * 4; - hw->io_ports[IDE_CONTROL_OFFSET] = ATA_HD_CONTROL; + hw->io_ports[IDE_CONTROL_OFFSET] = ATA_HD_BASE + ATA_HD_CONTROL; hw->irq = IRQ_MFP_IDE; hw->ack_intr = NULL; diff --git a/trunk/drivers/ide/legacy/macide.c b/trunk/drivers/ide/legacy/macide.c index a61e60737dc7..9a79098d9eb4 100644 --- a/trunk/drivers/ide/legacy/macide.c +++ b/trunk/drivers/ide/legacy/macide.c @@ -74,7 +74,7 @@ static void __init macide_setup_ports(hw_regs_t *hw, unsigned long base, for (i = 0; i < 8; i++) hw->io_ports[i] = base + i * 4; - hw->io_ports[IDE_CONTROL_OFFSET] = IDE_CONTROL; + hw->io_ports[IDE_CONTROL_OFFSET] = base + IDE_CONTROL; hw->irq = irq; hw->ack_intr = ack_intr; diff --git a/trunk/kernel/auditsc.c b/trunk/kernel/auditsc.c index 2087d6de67ea..ac6d9b23b018 100644 --- a/trunk/kernel/auditsc.c +++ b/trunk/kernel/auditsc.c @@ -1000,10 +1000,9 @@ static int audit_log_single_execve_arg(struct audit_context *context, * for strings that are too long, we should not have created * any. */ - if (unlikely((len == -1) || len > MAX_ARG_STRLEN - 1)) { + if (unlikely((len = -1) || len > MAX_ARG_STRLEN - 1)) { WARN_ON(1); send_sig(SIGKILL, current, 0); - return -1; } /* walk the whole argument looking for non-ascii chars */ @@ -1021,7 +1020,6 @@ static int audit_log_single_execve_arg(struct audit_context *context, if (ret) { WARN_ON(1); send_sig(SIGKILL, current, 0); - return -1; } buf[to_send] = '\0'; has_cntl = audit_string_contains_control(buf, to_send); @@ -1085,7 +1083,6 @@ static int audit_log_single_execve_arg(struct audit_context *context, if (ret) { WARN_ON(1); send_sig(SIGKILL, current, 0); - return -1; } buf[to_send] = '\0';