From: Lior Amsalem Date: Tue, 26 May 2015 13:07:32 +0000 (+0200) Subject: dmaengine: mv_xor: bug fix for racing condition in descriptors cleanup X-Git-Tag: omap-for-v4.2/fixes-rc1^2~74^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9136291f1dbc1d4d1cacd2840fb35f4f3ce16c46;p=pandora-kernel.git dmaengine: mv_xor: bug fix for racing condition in descriptors cleanup This patch fixes a bug in the XOR driver where the cleanup function can be called and free descriptors that never been processed by the engine (which result in data errors). The cleanup function will free descriptors based on the ownership bit in the descriptors. Fixes: ff7b04796d98 ("dmaengine: DMA engine driver for Marvell XOR engine") Signed-off-by: Lior Amsalem Signed-off-by: Maxime Ripard Reviewed-by: Ofer Heifetz Cc: stable@vger.kernel.org Signed-off-by: Vinod Koul --- Reading git-diff-tree failed