Received: by 10.223.185.116 with SMTP id b49csp6406835wrg; Wed, 28 Feb 2018 08:54:56 -0800 (PST) X-Google-Smtp-Source: AH8x225xtModRK/ENHEouOvvLN6F/OH+U2iGjAwIAUmZHrrgt9S9Z1nnqmkPtvGQif/3ufnP7edV X-Received: by 2002:a17:902:b58d:: with SMTP id a13-v6mr19014933pls.123.1519836896399; Wed, 28 Feb 2018 08:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519836896; cv=none; d=google.com; s=arc-20160816; b=rsSOX4VKfP6IZmX9/ffxVF2Q2ioPWG5LDxGaHSwsxAU3kjYKAcY+8YeKCCHvnWpiPQ VD+ZSzx4vAHOWs/V2VUN/pHtZAeb6GlhzlJwlso08INUnJ8545HHFlKrU3wpoQGLZp/C oU3bR5hymOMWp7jlvL9NOhbK2UWDN3T4o7/xyqA06PgStMrS+tmeb37Jryujle+TbSFH N9YhkMMQlbwOIRooeK3NtvLwok8kHAhnNjw0Th/LI/OH2lxcCf6/ub29H+FjRzUR6A1X 9Zl+lB7AB6JrlPcKvexW09rqgY6Q8aukahtcNx2VZ3QGd9bowq4Ytpn2oXas0UmtjAXI /60g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=0kbMsJ/Zni13w0VWZt3OJjqEmIRYFwzLtvwSh4gGLlk=; b=VSXZ2Yz1QfIjVYZA10Va9HRgLhPPgQJ4DBLeCsvnop04iIeiMLR3/DqwgcjxHt/DJ/ MDiLqmrccRA07MWs9unsHGt7PzVmyoa7BaDnjxIH3rHMeAgnRwZRWauVrIcZxQ+CNTNM Yf3mKUHH9gvpgOAqHwFYUHZY2K7c/7iA6ys/FMeaE8h4yPYXzwejKc6RglEn94hlodam RsB1pXoUTLaGGNKJ5zrBoIrg2FW9qOsAlqU4vlsNPNGh82ySXKFL1n2MP6SnpeTfwgNW hUq0lQ6N2V2782sSsK7XAUt0KnwosvotqtDQpHDKzXjc3jNNwdJPHWfnPEy9O+fR5hUr u2GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b65si1480009pfk.283.2018.02.28.08.54.41; Wed, 28 Feb 2018 08:54:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934208AbeB1P5v (ORCPT + 99 others); Wed, 28 Feb 2018 10:57:51 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:34524 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933979AbeB1P5t (ORCPT ); Wed, 28 Feb 2018 10:57:49 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1er3Ym-0006Xk-1y; Wed, 28 Feb 2018 15:22:24 +0000 Received: from ben by deadeye with local (Exim 4.90_1) (envelope-from ) id 1er3Yl-0000K7-5O; Wed, 28 Feb 2018 15:22:23 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Hans Verkuil" , "Sakari Ailus" , "Mauro Carvalho Chehab" Date: Wed, 28 Feb 2018 15:20:18 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 250/254] media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer type In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.55-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Hans Verkuil commit 169f24ca68bf0f247d111aef07af00dd3a02ae88 upstream. There is nothing wrong with using an unknown buffer type. So stop spamming the kernel log whenever this happens. The kernel will just return -EINVAL to signal this. Signed-off-by: Hans Verkuil Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c +++ b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c @@ -170,8 +170,6 @@ static int __get_v4l2_format32(struct v4 return copy_from_user(&kp->fmt.sliced, &up->fmt.sliced, sizeof(kp->fmt.sliced)) ? -EFAULT : 0; default: - printk(KERN_INFO "compat_ioctl32: unexpected VIDIOC_FMT type %d\n", - kp->type); return -EINVAL; } } @@ -217,8 +215,6 @@ static int __put_v4l2_format32(struct v4 return copy_to_user(&up->fmt.sliced, &kp->fmt.sliced, sizeof(kp->fmt.sliced)) ? -EFAULT : 0; default: - printk(KERN_INFO "compat_ioctl32: unexpected VIDIOC_FMT type %d\n", - kp->type); return -EINVAL; } }