diff options
| author | Andreas Gruenbacher <[email protected]> | 2019-11-07 15:28:18 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2019-11-07 15:28:18 +0000 |
| commit | add66fcbd3fbe5aa0dd4dddfa23e119c12989a27 (patch) | |
| tree | d9d71271fe45b9a3ba59c9c17bc5534efb149f67 /net/unix/af_unix.c | |
| parent | fs/iomap: remove redundant check in iomap_dio_rw() (diff) | |
| download | kernel-add66fcbd3fbe5aa0dd4dddfa23e119c12989a27.tar.gz kernel-add66fcbd3fbe5aa0dd4dddfa23e119c12989a27.zip | |
iomap: Fix overflow in iomap_page_mkwrite
On architectures where loff_t is wider than pgoff_t, the expression
((page->index + 1) << PAGE_SHIFT) can overflow. Rewrite to use the page
offset, which we already compute here anyway.
Signed-off-by: Andreas Gruenbacher <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
