diff options
| author | Thomas Tuttle <[email protected]> | 2008-06-05 22:46:58 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-06-06 11:29:13 -0700 |
| commit | 4710d1ac4c491dd8a28f57946214c0b5fe73cc87 (patch) | |
| tree | 8c62c8665e343be25cb1d351a0cc4075f70e7241 /drivers/net/ibm_emac/ibm_emac_debug.c | |
| parent | bbcdac0c20aa20d1daad41d9c138102b70e5aae4 (diff) | |
pagemap: return EINVAL, not EIO, for unaligned reads of kpagecount or kpageflags
If the user tries to read from a position that is not a multiple of 8, or
read a number of bytes that is not a multiple of 8, they have passed an
invalid argument to read, for the purpose of reading these files. It's
not an IO error because we didn't encounter any trouble finding the data
they asked for.
Signed-off-by: Thomas Tuttle <[email protected]>
Cc: Matt Mackall <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/net/ibm_emac/ibm_emac_debug.c')
0 files changed, 0 insertions, 0 deletions