From c091ff51b4d2543b828d53ce47f66905dee870fd Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 31 Jul 2014 09:34:05 +0900 Subject: [PATCH] dmaengine: shdma: Make channel filter ignore unrelated devices The shdma_chan_filter() function relies on the DMA channel being embedded in an shdma_chan structure. If this assumption isn't true, for instance when the system contains DMA channels supported by an unrelated driver, the function will crash. Avoid this by returning false directly when the channel belongs to an unrelated device. Signed-off-by: Laurent Pinchart Signed-off-by: Simon Horman Signed-off-by: Vinod Koul --- Reading git-format-patch failed