Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 645
b: refs/heads/master
c: d5812a7
h: refs/heads/master
i:
  643: c08c42a
v: v3
  • Loading branch information
Paul Mackerras authored and Linus Torvalds committed May 1, 2005
1 parent 27e0e52 commit f649916
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b20cc8aff258eea5a2339107605ebea949fa6ecf
refs/heads/master: d5812a77e5803468a5033be91af978be0f7a17d9
4 changes: 4 additions & 0 deletions trunk/arch/ppc/kernel/align.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ fix_alignment(struct pt_regs *regs)
/* lwm, stmw */
nb = (32 - reg) * 4;
}

if (!access_ok((flags & ST? VERIFY_WRITE: VERIFY_READ), addr, nb+nb0))
return -EFAULT; /* bad address */

rptr = (unsigned char *) &regs->gpr[reg];
if (flags & LD) {
for (i = 0; i < nb; ++i)
Expand Down

0 comments on commit f649916

Please sign in to comment.