[PATCH V2] dmaengine/amba-pl08x: check slave_channels to avoid kernel panic
Russell King - ARM Linux
linux at arm.linux.org.uk
Tue May 15 06:22:58 EDT 2012
On Tue, May 15, 2012 at 06:19:36PM +0800, Kassey Lee wrote:
> commit 58baed44d52f5e0d87aca575318d71fe3937544c
> Author: Kassey Lee <kassey1216 at gmail.com>
> Date: Wed Apr 11 02:22:26 2012 +0800
> dmaengine/amba-pl08x: check slave_channels to avoid kernel panic
> slave_channels is platform dependent, it should
> be initialized by board.c, and here we need to check it
> to avoid a NULL panic.
> Signed-off-by: Kassey,Lee <kassey1216 at gmail.com>
Why would you set pd->num_slave_channels nonzero but leave
pd->slave_channels as a NULL pointer?
That sounds like a configuration error to me.
More information about the linux-arm-kernel