]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: amba-pl08x: make filter check that the channel is owned by pl08x
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Wed, 31 Aug 2011 08:34:35 +0000 (09:34 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 5 Sep 2011 13:27:38 +0000 (18:57 +0530)
commit3b1f97257454f893e48e35c1d9cbd625b23747dd
tree75de31e4ddfe8f1899b7547d40e84be6d5b4face
parent8f2dee25f21e3d177ed2a7e41223a40147e88bf5
dmaengine: amba-pl08x: make filter check that the channel is owned by pl08x

Before converting the dma channel to our private data structure, first
check that the channel is indeed one which our driver registered.  We
do this by ensuring that the underlying device is bound to our driver.

This avoids potential oopses if we try to reference 'plchan->name'
against a foreign drivers dma channel.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/amba-pl08x.c