projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8194145
)
drivers, pch_dma: Fix uninitialized var before use
author
Liu Yuan
<tailai.ly@taobao.com>
Sat, 2 Apr 2011 06:20:47 +0000
(14:20 +0800)
committer
Vinod Koul
<vinod.koul@intel.com>
Wed, 6 Apr 2011 08:44:56 +0000
(14:14 +0530)
In the function pdc_desc_get(), var 'i' is not
initialized before use. This patch fixes it.
Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pch_dma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/pch_dma.c
b/drivers/dma/pch_dma.c
index 8d8fef1480a93115ab17c51f6c97d0130b44b21d..6eebc6205c65d7773fa8d6e598060dd477b5c323 100644
(file)
--- a/
drivers/dma/pch_dma.c
+++ b/
drivers/dma/pch_dma.c
@@
-403,7
+403,7
@@
static struct pch_dma_desc *pdc_desc_get(struct pch_dma_chan *pd_chan)
{
struct pch_dma_desc *desc, *_d;
struct pch_dma_desc *ret = NULL;
- int i;
+ int i
= 0
;
spin_lock(&pd_chan->lock);
list_for_each_entry_safe(desc, _d, &pd_chan->free_list, desc_node) {
This page took
0.024706 seconds
and
5
git commands to generate.