diff options
author | Zhang Jiejing <jiejing.zhang@freescale.com> | 2012-07-16 09:51:47 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2012-07-25 13:10:53 +0800 |
commit | 63a423497cb305c4089d2f93f706e1d58b472a42 (patch) | |
tree | 6a8526e635c169cc7e746d59a9136d4948fe0682 /drivers/mxc/vpu | |
parent | 8543fdd98a64ab6d3ce537dcd5ef140644ae6c7b (diff) |
ENGR00217258 mxc_vpu: return error when ioctl was not supported.
MXC_VPU will return 0 if IOCTL don't support, for user space, it think
this IOCTL success, but it's needs actually return a failed return
value.
Signed-off-by Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'drivers/mxc/vpu')
-rw-r--r-- | drivers/mxc/vpu/mxc_vpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mxc/vpu/mxc_vpu.c b/drivers/mxc/vpu/mxc_vpu.c index 03a35be0b179..c97437fb0c9e 100644 --- a/drivers/mxc/vpu/mxc_vpu.c +++ b/drivers/mxc/vpu/mxc_vpu.c @@ -481,6 +481,7 @@ static long vpu_ioctl(struct file *filp, u_int cmd, default: { printk(KERN_ERR "No such IOCTL, cmd is %d\n", cmd); + ret = -EINVAL; break; } } |