diff options
author | David Schleef <ds@ti.com> | 2012-01-04 16:22:16 -0800 |
---|---|---|
committer | Guillaume Aubertin <g-aubertin@ti.com> | 2012-06-26 12:20:41 +0200 |
commit | 300afa198726d9d1a64f73b5a36bb58bd1c8b725 (patch) | |
tree | ed95d6651c8c07f59fa743e035723b45bb2d32f3 | |
parent | 686a9b4a5d66979106821615820ec01e1c3ad17f (diff) |
rpmsg: omx: copy_from_user() errors should return -EFAULT
Change-Id: Ic1d8d82f6bd366f39af2ef4cf9e58fc0614b21fd
Signed-off-by: David Schleef <ds@ti.com>
-rw-r--r-- | drivers/rpmsg/rpmsg_omx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rpmsg/rpmsg_omx.c b/drivers/rpmsg/rpmsg_omx.c index 83382677640f..4604e694b138 100644 --- a/drivers/rpmsg/rpmsg_omx.c +++ b/drivers/rpmsg/rpmsg_omx.c @@ -621,7 +621,7 @@ static ssize_t rpmsg_omx_write(struct file *filp, const char __user *ubuf, * be significant in real use cases */ if (copy_from_user(hdr->data, ubuf, use)) - return -EMSGSIZE; + return -EFAULT; ret = _rpmsg_omx_map_buf(omx, hdr->data); if (ret < 0) |