]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.14.33/mei-remove-dev_err-message-on-an-unsupported-ioctl.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.14.33 / mei-remove-dev_err-message-on-an-unsupported-ioctl.patch
CommitLineData
08f2b9b8
GKH
1From bb0829a741792b56c908d7745bc0b2b540293bcc Mon Sep 17 00:00:00 2001
2From: Colin Ian King <colin.king@canonical.com>
3Date: Tue, 27 Feb 2018 16:21:05 +0000
4Subject: mei: remove dev_err message on an unsupported ioctl
5
6From: Colin Ian King <colin.king@canonical.com>
7
8commit bb0829a741792b56c908d7745bc0b2b540293bcc upstream.
9
10Currently the driver spams the kernel log on unsupported ioctls which is
11unnecessary as the ioctl returns -ENOIOCTLCMD to indicate this anyway.
12I suspect this was originally for debugging purposes but it really is not
13required so remove it.
14
15Signed-off-by: Colin Ian King <colin.king@canonical.com>
16Cc: stable <stable@vger.kernel.org>
17Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18
19---
20 drivers/misc/mei/main.c | 1 -
21 1 file changed, 1 deletion(-)
22
23--- a/drivers/misc/mei/main.c
24+++ b/drivers/misc/mei/main.c
25@@ -507,7 +507,6 @@ static long mei_ioctl(struct file *file,
26 break;
27
28 default:
29- dev_err(dev->dev, ": unsupported ioctl %d.\n", cmd);
30 rets = -ENOIOCTLCMD;
31 }
32