diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-09-19 00:05:50 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-09-24 15:47:31 +0400 |
commit | 5aa98b706e83da4cde4172c890d6e815915536a0 (patch) | |
tree | ce7a52cb4d019110076ef0d3791a947ce343abc6 /include/linux/fs.h | |
parent | 05cc0cee6948fc11985d11557fb130645a7f69a6 (diff) | |
download | linux-5aa98b706e83da4cde4172c890d6e815915536a0.tar.xz |
vfs: explicitly cast s_maxbytes in fiemap_check_ranges
If fiemap_check_ranges is passed a large enough value, then it's
possible that the value would be cast to a signed value for comparison
against s_maxbytes when we change it to loff_t. Make sure that doesn't
happen by explicitly casting s_maxbytes to an unsigned value for the
purposes of comparison.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Robert Love <rlove@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mandeep Singh Baines <msb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
0 files changed, 0 insertions, 0 deletions