aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorRobin Murphy <[email protected]>2015-10-01 22:37:19 +0000
committerLinus Torvalds <[email protected]>2015-10-02 01:42:35 +0000
commit676bd99178cd962ed24ffdad222b7069d330a969 (patch)
treeca76fb3382ada58d059dae22fb60f18b7437c8d4 /net/switchdev/switchdev.c
parentthermal: avoid division by zero in power allocator (diff)
downloadkernel-676bd99178cd962ed24ffdad222b7069d330a969.tar.gz
kernel-676bd99178cd962ed24ffdad222b7069d330a969.zip
dmapool: fix overflow condition in pool_find_page()
If a DMA pool lies at the very top of the dma_addr_t range (as may happen with an IOMMU involved), the calculated end address of the pool wraps around to zero, and page lookup always fails. Tweak the relevant calculation to be overflow-proof. Signed-off-by: Robin Murphy <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Marek Szyprowski <[email protected]> Cc: Sumit Semwal <[email protected]> Cc: Sakari Ailus <[email protected]> Cc: Russell King <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions