summaryrefslogtreecommitdiffstats
path: root/lib/once.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-09-30 10:15:52 +0200
committerBjorn Helgaas <bhelgaas@google.com>2017-10-17 20:56:20 +0200
commit343dc693f7b79885197f9d37dd8b711b0e3ffc8f (patch)
tree03d18b9cc634d4634b374796e93cca398d2b98e1 /lib/once.c
parentLinux 4.14-rc3 (diff)
downloadlinux-343dc693f7b79885197f9d37dd8b711b0e3ffc8f.tar.xz
linux-343dc693f7b79885197f9d37dd8b711b0e3ffc8f.zip
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, ... Add 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: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'lib/once.c')
0 files changed, 0 insertions, 0 deletions