dmaengine: ste_dma40: off by one in d40_of_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Aug 2013 09:23:43 +0000 (12:23 +0300)
committerVinod Koul <vinod.koul@intel.com>
Sun, 25 Aug 2013 10:53:32 +0000 (16:23 +0530)
commit5be2190af4b03be5959684f7336c8da62606809e
tree64ed977ea37d45c39c52ad61ae60bab3f27825a3
parent3a919d5b43e459517492eb0f664b120877dfdd79
dmaengine: ste_dma40: off by one in d40_of_probe()

If "num_disabled" is equal to STEDMA40_MAX_PHYS (32) then we would write
one space beyond the end of the pdata->disable_channels[] array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c