diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-09-11 15:42:13 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-09-12 08:21:32 +0200 |
commit | 52499d9cdd887843fa37bf8733047fded7e907cb (patch) | |
tree | 9f93fb9899bf60313f2c8ef3acbd30345a2b4ca3 /drivers | |
parent | 7a1c67d78094236e8ba0c5f6f83a8baf33a53860 (diff) | |
download | linux-52499d9cdd887843fa37bf8733047fded7e907cb.tar.gz linux-52499d9cdd887843fa37bf8733047fded7e907cb.tar.bz2 linux-52499d9cdd887843fa37bf8733047fded7e907cb.zip |
udmabuf: use ENOTTY for invalid ioctls
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20180911134216.9760-11-kraxel@redhat.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma-buf/udmabuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index e0465a9bf3f9..5dd73bc511ba 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma-buf/udmabuf.c @@ -260,7 +260,7 @@ static long udmabuf_ioctl(struct file *filp, unsigned int ioctl, ret = udmabuf_ioctl_create_list(filp, arg); break; default: - ret = -EINVAL; + ret = -ENOTTY; break; } return ret; |