Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10dac04c authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

mips: fix an off-by-one in dma_capable



This makes it match the generic version.

Reported-by: default avatarVladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 298f0027
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
	if (!dev->dma_mask)
		return false;

	return addr + size <= *dev->dma_mask;
	return addr + size - 1 <= *dev->dma_mask;
}

static inline void dma_mark_clean(void *addr, size_t size) {}