summaryrefslogtreecommitdiff
path: root/fs/nls/nls_iso8859-14.c
diff options
context:
space:
mode:
authorAndrea Arcangeli <aarcange@redhat.com>2011-11-01 00:08:22 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2011-11-01 00:30:47 (GMT)
commitebed48460be5abd86d9a24fa7c66378e58109f30 (patch)
tree721d935953c58ac014e3d00ea1092ab480ea3356 /fs/nls/nls_iso8859-14.c
parent6661672053aee709d93f5dbd7887c789364c11d4 (diff)
downloadlinux-ebed48460be5abd86d9a24fa7c66378e58109f30.tar.xz
mremap: check for overflow using deltas
Using "- 1" relies on the old_end to be page aligned and PAGE_SIZE > 1, those are reasonable requirements but the check remains obscure and it looks more like an off by one error than an overflow check. This I feel will improve readability. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Acked-by: Johannes Weiner <jweiner@redhat.com> Acked-by: Mel Gorman <mgorman@suse.de> Acked-by: Rik van Riel <riel@redhat.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nls/nls_iso8859-14.c')
0 files changed, 0 insertions, 0 deletions