diff options
author | David Schleef <ds@ti.com> | 2012-01-05 00:22:16 -0800 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-05-01 18:28:21 +0200 |
commit | 04e1c8a81a951302bc9f3573e9c9498664cfa5b5 (patch) | |
tree | 6811bba4eb90ff7d3dfe4cc60ec2795746a6bdc0 | |
parent | 3fcfff1ecb34905aa6077de4d060f31efb4a7b74 (diff) | |
download | kernel_samsung_tuna-04e1c8a81a951302bc9f3573e9c9498664cfa5b5.zip kernel_samsung_tuna-04e1c8a81a951302bc9f3573e9c9498664cfa5b5.tar.gz kernel_samsung_tuna-04e1c8a81a951302bc9f3573e9c9498664cfa5b5.tar.bz2 |
rpmsg: omx: copy_from_user() errors should return -EFAULT
rpmsg: omx: copy_from_user() errors should return -EFAULT
Change-Id: Ib4a2d92dd3b8afa18e60019871cfea2e6b446a4d
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 487fc0e..22d81b2 100644 --- a/drivers/rpmsg/rpmsg_omx.c +++ b/drivers/rpmsg/rpmsg_omx.c @@ -612,7 +612,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) |