summaryrefslogtreecommitdiffstats
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorM'boumba Cedric Madianga <cedric.madianga@gmail.com>2015-12-07 12:00:28 +0100
committerVinod Koul <vinod.koul@intel.com>2015-12-10 05:15:22 +0100
commitaea08a5dfadf387153cdbbff89f775b0e19d32e4 (patch)
treee131357f4158ae6de8a7ce51b06983ca80c48dc1 /lib/bitmap.c
parentARM: configs: Add STM32 DMA support in STM32 defconfig (diff)
downloadlinux-aea08a5dfadf387153cdbbff89f775b0e19d32e4.tar.xz
linux-aea08a5dfadf387153cdbbff89f775b0e19d32e4.zip
dmaengine: stm32-dma: Fix unchecked deference of chan->desc
'commit d8b468394fb7 ("dmaengine: Add STM32 DMA driver")' leads to the following Smatch complaint: drivers/dma/stm32-dma.c:562 stm32_dma_issue_pending() error: we previously assumed 'chan->desc' could be null (see line 560) So, this patch fixes the unchecked dereference of chan->desc by returning operation not permitted error when stm32_dma_start_transfer() does not succeed to allocate a virtual channel descriptor. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions