From: Viswas G Date: Tue, 11 Aug 2015 09:36:28 +0000 (+0530) Subject: pm80xx: Fix for Incorrect DMA Unmapping of SG List X-Git-Tag: omap-for-v4.3/fixes-rc1~115^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b700e341144f278b8248418991c086d09b7137b;p=pandora-kernel.git pm80xx: Fix for Incorrect DMA Unmapping of SG List In pm8001_ccb_task_free(), the dma unmapping is done based on ccb->n_elem value. This should be initialized to zero in the task_abort(). Otherwise, pm8001_ccb_task_free() will try for dma_unmap_sg() which is invalid for task abort and can lead to kernel crash. Changes From V1: None Signed-off-by: Viswas G Reviewed-by: Suresh Thiagarajan Reviewed-by: Hannes Reinecke Reviewed-by: Jack Wang Reviewed-by: Tomas Henzl Signed-off-by: James Bottomley --- Reading git-diff-tree failed