From: Laurent Pinchart Date: Thu, 31 Jul 2014 00:34:05 +0000 (+0900) Subject: dmaengine: shdma: Make channel filter ignore unrelated devices X-Git-Tag: cleanup-for-v3.18~47^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c091ff51b4d2543b828d53ce47f66905dee870fd;p=pandora-kernel.git 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-diff-tree failed