fsldma: fix check on potential fdev->chan[] overflow
commitf47edc6dab11801c2e97088ba7bbce042ded867c
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 22 May 2009 08:46:52 +0000 (22 16:46 +0800)
committerLi Yang <leoli@freescale.com>
Fri, 22 May 2009 08:46:52 +0000 (22 16:46 +0800)
tree99de3f248d23b997813ba0da149359601ed281e1
parent0899d6349c60e4021224b51c8c97f49b829dfefd
fsldma: fix check on potential fdev->chan[] overflow

Fix the check of potential array overflow when using corrupted channel
device tree nodes.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Li Yang <leoli@freescale.com>
drivers/dma/fsldma.c