diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-09-18 22:05:50 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-09-24 13:47:31 +0200 |
commit | 5aa98b706e83da4cde4172c890d6e815915536a0 (patch) | |
tree | ce7a52cb4d019110076ef0d3791a947ce343abc6 /fs/super.c | |
parent | libfs: return error code on failed attr set (diff) | |
download | linux-5aa98b706e83da4cde4172c890d6e815915536a0.tar.xz linux-5aa98b706e83da4cde4172c890d6e815915536a0.zip |
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 'fs/super.c')
0 files changed, 0 insertions, 0 deletions