diff options
| author | Wouter van Kesteren <[email protected]> | 2016-02-16 21:20:59 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2016-02-20 05:15:50 +0000 |
| commit | 2feb55f89096b22e2de066e411a3263647211987 (patch) | |
| tree | 44b6c6e9b75c40dace87ea10956ad2b692449fe5 /net/switchdev/switchdev.c | |
| parent | Linux 4.5-rc4 (diff) | |
| download | kernel-2feb55f89096b22e2de066e411a3263647211987.tar.gz kernel-2feb55f89096b22e2de066e411a3263647211987.zip | |
fs: allow no_seek_end_llseek to actually seek
The user-visible impact of the issue is for example that without this
patch sensors-detect breaks when trying to seek in /dev/cpu/0/cpuid.
'~0ULL' is a 'unsigned long long' that when converted to a loff_t,
which is signed, gets turned into -1. later in vfs_setpos we have
'if (offset > maxsize)', which makes it always return EINVAL.
Fixes: b25472f9b961 ("new helpers: no_seek_end_llseek{,_size}()")
Signed-off-by: Wouter van Kesteren <[email protected]>
Reviewed-by: Andreas Dilger <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
