]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00217258 mxc_vpu: return error when ioctl was not supported.
authorZhang Jiejing <jiejing.zhang@freescale.com>
Mon, 16 Jul 2012 01:51:47 +0000 (09:51 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:23 +0000 (14:12 +0200)
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>

drivers/mxc/vpu/mxc_vpu.c

index 03a35be0b179ec0f0a09491a99bd6034b77c93ff..c97437fb0c9e571670e41b6d3f07a52225e0015d 100644 (file)
@@ -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;
                }
        }