summaryrefslogtreecommitdiff
path: root/arch/mips/lib/cmpdi2.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-09-30 11:15:52 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-04 10:39:28 +0200
commit378f79cab12b669928f3a4037f023837ead2ce0c (patch)
tree3c1e44ce1b50659550a0a956c2b81d7d8b778b69 /arch/mips/lib/cmpdi2.c
parenta120fbddd59a3d04a63800824ea032dbf1c21b83 (diff)
downloadlinux-378f79cab12b669928f3a4037f023837ead2ce0c.tar.gz
linux-378f79cab12b669928f3a4037f023837ead2ce0c.tar.xz
misc: pci_endpoint_test: Prevent some integer overflows
"size + max" can have an arithmetic overflow when we're allocating: orig_src_addr = dma_alloc_coherent(dev, size + alignment, ... I've added a few checks to prevent that. Fixes: 13107c60681f ("misc: pci_endpoint_test: Add support to provide aligned buffer addresses") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/lib/cmpdi2.c')
0 files changed, 0 insertions, 0 deletions