Thread (2 messages) flat view 2 messages, 2 authors, 2016-07-19

Re: [PATCH] net: ti: cpmac: Use the correct function to free some resources.

From: David Miller <davem@davemloft.net>
Date: 2016-07-19 18:31:03
Also in: kernel-janitors, lkml

From: Christophe JAILLET <redacted>
Date: Sun, 17 Jul 2016 08:15:50 +0200
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 <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help