diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2014-10-13 16:51:05 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-14 19:59:37 (GMT) |
commit | ff9538b1fce3a3af66578c072259dba7f7b4fe7a (patch) | |
tree | f00f4d63da247807409c15df56fb81dc24cfa5db /drivers/net | |
parent | 2c7c9ea429ba30fe506747b7da110e2212d8fefa (diff) | |
download | linux-ff9538b1fce3a3af66578c072259dba7f7b4fe7a.tar.xz |
drivers: net: davinci_cpdma: remove kfree on objects allocated with devm_* apis
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_cpdma.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b/drivers/net/ethernet/ti/davinci_cpdma.c index 4a000f6..32dc289 100644 --- 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); |