projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/spi/spi-qup.c
b/drivers/spi/spi-qup.c
index f1aa5c15d1805531479e2f45d952db0cd42f506f..ef952946375ad3cdb1aca4cc102b55304b54371d 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;