DMA: svace fix: add type cast code to loop function(WGID: 2490).
authorJaejoon Yoo <joonyj7.yoo@samsung.com>
Fri, 6 Jan 2017 08:21:33 +0000 (17:21 +0900)
committerTaekki Kim <taekki.kim@samsung.com>
Mon, 14 May 2018 05:42:47 +0000 (14:42 +0900)
Change-Id: Ie2d0d68c975e2c0b8e51330783c577bff1523b37
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
drivers/dma/pl330.c

index 98e16c4029f21f03118711d340216536a4e9e472..888f35012ff178d6e6d62a9165a3ba7ff9bf3e64 100644 (file)
@@ -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;