|
@@ -137,7 +137,7 @@ static ssize_t read_mem(struct file *file, char __user *buf,
|
|
|
|
|
|
while (count > 0) {
|
|
|
unsigned long remaining;
|
|
|
- int allowed;
|
|
|
+ int allowed, probe;
|
|
|
|
|
|
sz = size_inside_page(p, count);
|
|
|
|
|
@@ -160,9 +160,9 @@ static ssize_t read_mem(struct file *file, char __user *buf,
|
|
|
if (!ptr)
|
|
|
goto failed;
|
|
|
|
|
|
- err = probe_kernel_read(bounce, ptr, sz);
|
|
|
+ probe = probe_kernel_read(bounce, ptr, sz);
|
|
|
unxlate_dev_mem_ptr(p, ptr);
|
|
|
- if (err)
|
|
|
+ if (probe)
|
|
|
goto failed;
|
|
|
|
|
|
remaining = copy_to_user(buf, bounce, sz);
|