On Wed, Mar 19, 2014 at 11:33 PM, <xuelin.shi@xxxxxxxxxxxxx> wrote: > From: Xuelin Shi <xuelin.shi@xxxxxxxxxxxxx> > > The count which is used to get_unmap_data maybe not the same as the > count computed in dmaengine_unmap which causes to free data in a > wrong pool. > > This patch fixes this issue by keeping the map count with unmap_data > structure and use this count to get the pool. > > Signed-off-by: Xuelin Shi <xuelin.shi@xxxxxxxxxxxxx> > --- > change history: > v1: keep mempool pointer with unmap struct > v2: keep u8 map_cnt instead of mempool pointer to save mem. > Looks good, but please next time remember to prefix your subject line. I.e. "dmaengine: fix dmaengine_unmap failure" I'll fix this up. -- Dan -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html