From: Jaejoon Yoo Date: Fri, 6 Jan 2017 08:21:33 +0000 (+0900) Subject: DMA: svace fix: add type cast code to loop function(WGID: 2490). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=baabf63c6b92150281f297bd92a466f41a7630a6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git DMA: svace fix: add type cast code to loop function(WGID: 2490). Change-Id: Ie2d0d68c975e2c0b8e51330783c577bff1523b37 Signed-off-by: Jaejoon Yoo --- diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 98e16c4029f2..888f35012ff1 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -1343,7 +1343,7 @@ static inline int _loop(struct pl330_dmac *pl330, unsigned dry_run, u8 buf[], off += _emit_LPEND(dry_run, &buf[off], &lpend); } - *bursts = lcnt1 * cyc; + *bursts = (unsigned long)lcnt1 * cyc; if (lcnt0) *bursts *= lcnt0;