On Sun, Sep 22, 2013 at 04:50:03PM +0200, Daniel Mack wrote: > cdd->cd and cdd->descs_phys are allocated DESCS_AREAS times from > init_descs() and freed as often from purge_descs(). This leads to both > memory leaks and double-frees. > > Fix this by pulling the calls to dma_{alloc,free}_coherent() out of the > loops. > > While at it, remove the intermediate variable mem_decs (I guess it was > only there to make the code comply to the 80-chars CodingSytle rule). > Looks fine, Sebastian cna you test it pls ~Vinod -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html