projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c8a570
)
rpmsg: qcom_smd: Correct return value for O_NONBLOCK
author
Bjorn Andersson
<bjorn.andersson@linaro.org>
Fri, 2 Dec 2016 00:59:55 +0000
(16:59 -0800)
committer
Bjorn Andersson
<bjorn.andersson@linaro.org>
Thu, 8 Dec 2016 15:58:05 +0000
(07:58 -0800)
qcom_smd_send() should return -EAGAIN for non-blocking channels with
insufficient space, so that we can propagate this event to user space.
Fixes:
53e2822e56c7
("rpmsg: Introduce Qualcomm SMD backend")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_smd.c
patch
|
blob
|
history
diff --git
a/drivers/rpmsg/qcom_smd.c
b/drivers/rpmsg/qcom_smd.c
index
92efa74
..
d003aa8
100644
(file)
--- a/
drivers/rpmsg/qcom_smd.c
+++ b/
drivers/rpmsg/qcom_smd.c
@@
-739,7
+739,7
@@
static int __qcom_smd_send(struct qcom_smd_channel *channel, const void *data,
while (qcom_smd_get_tx_avail(channel) < tlen) {
if (!wait) {
- ret = -E
NOMEM
;
+ ret = -E
AGAIN
;
goto out;
}