lkml.org 
[lkml]   [2013]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RESEND PATCH 4/4] kdump, oldmem: compare with saved_max_pfn exclusively
Date
Signed-off-by: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
---

drivers/char/mem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index c6fa3bc..5da737c 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -369,7 +369,7 @@ static ssize_t read_oldmem(struct file *file, char __user *buf,

while (count) {
pfn = *ppos / PAGE_SIZE;
- if (pfn > saved_max_pfn)
+ if (!(pfn < saved_max_pfn))
return read;

offset = (unsigned long)(*ppos % PAGE_SIZE);


\
 
 \ /
  Last update: 2013-02-04 09:05    [W:0.042 / U:4.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site