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 */
|
/* Check alignment */
|
||||||
if ((offset % sizeof(uint64_t) != 0) ||
|
if ((offset % sizeof(uint64_t) != 0) ||
|
||||||
(count % sizeof(uint64_t) != 0)) {
|
(count % sizeof(uint64_t) != 0)) {
|
||||||
ans = 0;
|
ans = -EINVAL;
|
||||||
eof = 1;
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user