Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1653
b: refs/heads/master
c: 92b4dc1
h: refs/heads/master
i:
  1651: d885a4c
v: v3
  • Loading branch information
Kumar Gala authored and Linus Torvalds committed May 28, 2005
1 parent 71e312a commit ee26483
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 91f9855a7afbb160ba1709bf342858732138abad
refs/heads/master: 92b4dc16257fef814ddf1c8d1d2a20f67f67ee4b
7 changes: 1 addition & 6 deletions trunk/arch/ppc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,7 @@ static int emulate_string_inst(struct pt_regs *regs, u32 instword)

/* Early out if we are an invalid form of lswx */
if ((instword & INST_STRING_MASK) == INST_LSWX)
if ((rA >= rT) || (NB_RB >= rT) || (rT == rA) || (rT == NB_RB))
return -EINVAL;

/* Early out if we are an invalid form of lswi */
if ((instword & INST_STRING_MASK) == INST_LSWI)
if ((rA >= rT) || (rT == rA))
if ((rT == rA) || (rT == NB_RB))
return -EINVAL;

EA = (rA == 0) ? 0 : regs->gpr[rA];
Expand Down

0 comments on commit ee26483

Please sign in to comment.