Messages in this thread | | | From | Arnd Bergmann <> | Subject | Re: [PATCH 2/2] dma:of: Use a mutex to protect the of_dma_list | Date | Fri, 19 Apr 2013 14:25:44 +0200 |
| |
On Friday 19 April 2013, Lars-Peter Clausen wrote: > Well, It's not only about the of_dma struct, e.g. the of_dma's of_dma_data > field usually points to some driver allocated data. If we do not block in > of_dma_controller_free() this data might be freed while the controller is > still in use.
Right, makes sense. This could of course be worked around using a destructor in the of_dma struct, but your approach is much simpler.
Arnd
| |