Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85779
b: refs/heads/master
c: 899e1bc
h: refs/heads/master
i:
  85777: 3b60384
  85775: f456e74
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Bartlomiej Zolnierkiewicz committed Feb 19, 2008
1 parent c26796d commit 7f4d526
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b0abcfc14605b2a8c686bd8e193ab05b01a7980b
refs/heads/master: 899e1bc57340ad9acf5561b1eff7a684975ad800
2 changes: 1 addition & 1 deletion trunk/drivers/ide/legacy/falconide.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/legacy/macide.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions trunk/kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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);
Expand Down Expand Up @@ -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';

Expand Down

0 comments on commit 7f4d526

Please sign in to comment.