summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-09-30 03:41:19 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-09-30 03:41:19 +0200
commit77f890223338c890fc33972673d2bd3a53061570 (patch)
treec2ed6ee220adc2c69816feaf4bcd6273f3dcdd97 /drivers
parentMerge branch 'for-linus' of git://oss.sgi.com/xfs/xfs (diff)
parentdmaengine: fix interrupt clearing for mv_xor (diff)
downloadlinux-77f890223338c890fc33972673d2bd3a53061570.tar.xz
linux-77f890223338c890fc33972673d2bd3a53061570.zip
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx: dmaengine: fix interrupt clearing for mv_xor missing inline keyword for static function in linux/dmaengine.h dma/shdma: move dereference below the NULL check
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/shdma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c
index fb64cf36ba61..eb6b54dbb806 100644
--- a/drivers/dma/shdma.c
+++ b/drivers/dma/shdma.c
@@ -580,7 +580,6 @@ static struct dma_async_tx_descriptor *sh_dmae_prep_slave_sg(
sh_chan = to_sh_chan(chan);
param = chan->private;
- slave_addr = param->config->addr;
/* Someone calling slave DMA on a public channel? */
if (!param || !sg_len) {
@@ -589,6 +588,8 @@ static struct dma_async_tx_descriptor *sh_dmae_prep_slave_sg(
return NULL;
}
+ slave_addr = param->config->addr;
+
/*
* if (param != NULL), this is a successfully requested slave channel,
* therefore param->config != NULL too.