fix /proc/*/pagemap

refs #387
This commit is contained in:
Tomoki Shirasawa
2017-12-25 16:08:51 +09:00
parent cc7be46b7d
commit 0cda763f95
2 changed files with 1 additions and 7 deletions

View File

@ -422,12 +422,6 @@ void process_procfs_request(struct ikc_scd_packet *rpacket)
if (strcmp(p, "pagemap") == 0) {
uint64_t *_buf = (uint64_t *)buf;
uint64_t start, end;
if (offset < PAGE_SIZE) {
kprintf("WARNING: /proc/pagemap queried for NULL page\n");
ans = 0;
goto end;
}
/* Check alignment */
if ((offset % sizeof(uint64_t) != 0) ||