commit | 731e6f007aa2d07fc1a420bffeb7c9e8226e89e6 | [log] [tgz] |
---|---|---|
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | Sun Jul 17 08:15:50 2016 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Jul 19 11:30:26 2016 -0700 |
tree | d1a2e997158f55d4b2baf58bf3cdf81614d9c37b | |
parent | 0d7eacbe637952fc737a968bc16db1f2ccbbe71c [diff] |
net: ti: cpmac: Use the correct function to free some resources. In 'cpmac_open', 'dma_alloc_coherent' has been used to allocate some resources, so we need to free them using 'dma_free_coherent' instead of 'kfree'. Also, we don't need to free these resources if the allocation has failed. So I have slighly modified the goto label in this case. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net>