Commit ff9538b1 authored by Mugunthan V N's avatar Mugunthan V N Committed by David S. Miller

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: e1943128 ('drivers: net: davinci_cpdma: Convert kzalloc() to devm_kzalloc().')
Signed-off-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2c7c9ea4
...@@ -561,7 +561,6 @@ int cpdma_chan_destroy(struct cpdma_chan *chan) ...@@ -561,7 +561,6 @@ int cpdma_chan_destroy(struct cpdma_chan *chan)
cpdma_chan_stop(chan); cpdma_chan_stop(chan);
ctlr->channels[chan->chan_num] = NULL; ctlr->channels[chan->chan_num] = NULL;
spin_unlock_irqrestore(&ctlr->lock, flags); spin_unlock_irqrestore(&ctlr->lock, flags);
kfree(chan);
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(cpdma_chan_destroy); EXPORT_SYMBOL_GPL(cpdma_chan_destroy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment