procfs: pagemap: Return EINVAL for unaligned offset

Change-Id: I2297818b0b31790b5452cb6f80dcba4192a7d120
This commit is contained in:
Masamichi Takagi
2019-04-12 20:19:14 +09:00
parent bdccbf7356
commit 75e42badf4

View File

@@ -477,8 +477,7 @@ int process_procfs_request(struct ikc_scd_packet *rpacket)
/* Check alignment */
if ((offset % sizeof(uint64_t) != 0) ||
(count % sizeof(uint64_t) != 0)) {
ans = 0;
eof = 1;
ans = -EINVAL;
goto end;
}