OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c7c9ea
)
drivers: net: davinci_cpdma: remove kfree on objects allocated with devm_* apis
author
Mugunthan V N
<mugunthanvnm@ti.com>
Mon, 13 Oct 2014 16:51:05 +0000
(22:21 +0530)
committer
David S. Miller
<davem@davemloft.net>
Tue, 14 Oct 2014 19:59:37 +0000
(15:59 -0400)
memories allocated with devm_* apis must not be freed with kfree apis,
so removing the kfree calls
Fixes:
e194312854ed
('drivers: net: davinci_cpdma: Convert kzalloc() to devm_kzalloc().')
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_cpdma.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/davinci_cpdma.c
b/drivers/net/ethernet/ti/davinci_cpdma.c
index
4a000f6
..
32dc289
100644
(file)
--- a/
drivers/net/ethernet/ti/davinci_cpdma.c
+++ b/
drivers/net/ethernet/ti/davinci_cpdma.c
@@
-561,7
+561,6
@@
int cpdma_chan_destroy(struct cpdma_chan *chan)
cpdma_chan_stop(chan);
ctlr->channels[chan->chan_num] = NULL;
spin_unlock_irqrestore(&ctlr->lock, flags);
- kfree(chan);
return 0;
}
EXPORT_SYMBOL_GPL(cpdma_chan_destroy);