projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9934075
)
dmaengine: omap-dma: initialize can_pause to false
author
Colin Ian King
<colin.king@canonical.com>
Wed, 19 Oct 2016 11:05:53 +0000
(12:05 +0100)
committer
Vinod Koul
<vinod.koul@intel.com>
Wed, 19 Oct 2016 13:17:29 +0000
(18:47 +0530)
can_pause is not initialized so it contains garbage. Fix this
by setting it to false.
Found using static analysis with cppcheck.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/omap-dma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/omap-dma.c
b/drivers/dma/omap-dma.c
index fd6b9e6834ad404ca161d9969a8a81ff6edb0480..15eb8024666bc775d65615c6425447e28609be85 100644
(file)
--- a/
drivers/dma/omap-dma.c
+++ b/
drivers/dma/omap-dma.c
@@
-1286,7
+1286,7
@@
static int omap_dma_pause(struct dma_chan *chan)
struct omap_dmadev *od = to_omap_dma_dev(chan->device);
unsigned long flags;
int ret = -EINVAL;
- bool can_pause;
+ bool can_pause
= false
;
spin_lock_irqsave(&od->irq_lock, flags);