Commit 52de6313 authored by Pavel Emelyanov's avatar Pavel Emelyanov

kerndat: Sanitize pagemap entry read err check

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 0b5170c0
......@@ -85,9 +85,8 @@ int kerndat_get_dirty_track(void)
lseek(pm2, (unsigned long)map / PAGE_SIZE * sizeof(u64), SEEK_SET);
ret = read(pm2, &pmap, sizeof(pmap));
if (ret < 0){
if (ret < 0)
pr_perror("Read pmap err!");
}
close(pm2);
munmap(map, PAGE_SIZE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment