2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

kerndat: Sanitize pagemap entry read err check

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-07-02 09:52:22 +04:00
parent 0b5170c0fc
commit 52de6313a8

View File

@@ -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);