aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2019-11-07 07:28:18 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2019-11-07 07:28:18 -0800
commitadd66fcbd3fbe5aa0dd4dddfa23e119c12989a27 (patch)
treed9d71271fe45b9a3ba59c9c17bc5534efb149f67 /drivers/usb/cdns3/cdns3-imx.c
parentfs/iomap: remove redundant check in iomap_dio_rw() (diff)
downloadwireguard-linux-add66fcbd3fbe5aa0dd4dddfa23e119c12989a27.tar.xz
wireguard-linux-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 <agruenba@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions