Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272100
b: refs/heads/master
c: 07ea815
h: refs/heads/master
v: v3
  • Loading branch information
Michael Holzheu authored and Martin Schwidefsky committed Oct 30, 2011
1 parent 3e768c6 commit 879dd1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 5f4026f8b2e4c5e26713d6c707592a33326a88c4
refs/heads/master: 07ea815b22b9f70ec8de6ddf8db63a1dd1585caf
9 changes: 4 additions & 5 deletions trunk/arch/s390/kernel/crash_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf,
size_t csize, unsigned long offset, int userbuf)
{
unsigned long src;
int rc;

if (!csize)
return 0;
Expand All @@ -43,11 +42,11 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf,
src < OLDMEM_BASE + OLDMEM_SIZE)
src -= OLDMEM_BASE;
if (userbuf)
rc = copy_to_user_real((void __user *) buf, (void *) src,
csize);
copy_to_user_real((void __force __user *) buf, (void *) src,
csize);
else
rc = memcpy_real(buf, (void *) src, csize);
return rc < 0 ? rc : csize;
memcpy_real(buf, (void *) src, csize);
return csize;
}

/*
Expand Down

0 comments on commit 879dd1a

Please sign in to comment.