procfs: pagemap: Return EINVAL for unaligned offset
Change-Id: I2297818b0b31790b5452cb6f80dcba4192a7d120
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user