projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce00bab
)
spi: qup: Fix error handling in spi_qup_prep_sg
author
Varadarajan Narayanan
<varada@codeaurora.org>
Fri, 28 Jul 2017 06:52:52 +0000
(12:22 +0530)
committer
Mark Brown
<broonie@kernel.org>
Tue, 8 Aug 2017 11:15:18 +0000
(12:15 +0100)
Signed-off-by: Varadarajan Narayanan <varada@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qup.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-qup.c
b/drivers/spi/spi-qup.c
index
f1aa5c1
..
ef95294
100644
(file)
--- a/
drivers/spi/spi-qup.c
+++ b/
drivers/spi/spi-qup.c
@@
-311,8
+311,8
@@
static int spi_qup_prep_sg(struct spi_master *master, struct spi_transfer *xfer,
}
desc = dmaengine_prep_slave_sg(chan, sgl, nents, dir, flags);
- if (
!desc
)
- return -EINVAL;
+ if (
IS_ERR_OR_NULL(desc)
)
+ return
desc ? PTR_ERR(desc) :
-EINVAL;
desc->callback = callback;
desc->callback_param = qup;