Received: by 10.223.185.116 with SMTP id b49csp361691wrg; Thu, 15 Feb 2018 23:42:15 -0800 (PST) X-Google-Smtp-Source: AH8x2257oiOgF7xRdH8psngb0zz8sGLY3Lzf7SEZb18YFjpDoV0y3shjQgpp4UI4oh6pSjPv4XvE X-Received: by 2002:a17:902:44:: with SMTP id 62-v6mr4937064pla.193.1518766935551; Thu, 15 Feb 2018 23:42:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518766935; cv=none; d=google.com; s=arc-20160816; b=wqIIZS/hNpJHGtXaFn1MhvS3LvBocg7wqiZ35ji77l7jMJwFUa0T5LG938fqRVlKh2 +7MHTogT2hUQhJOwkYPw1KdtadluhQ3f9nmdw0OM1mRi6VolTMjc3W5aR1g9eFLxSSVz XGa4ZCFIeRwI4WzdFICXZiS/Y/npwZU3A/dbHtXCQ7obweI5qAM9pV1n2bB+kg+wSeFk wWKI38vh+g0I5mn8VS3P6KebiWRbCpARGckovDzaurN99S7Eiew+9biE8qb5rlsALimW JINMXVNxnPfSTrpM36e2/VSNopq/rQCgf+dTxRPw+xFw4JdHnHqpvnnBYb7B+NcLI3Mm turQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=hgxU0TtHmIxszWxx0QcTN1OWjM8vo4dDTSXUn+c4nrw=; b=HmpreIghKXXnsiJnN3py+Cw/wUV8ozeRcHTbqe5e7y/aUeE6C/AV4abShdGDfItdse pybN0OK97Cr6aqBp3sUKpuJznfxK980eR9GzCif7Mle0XzUcZFvHJb1H7qH4+YfCLe8u xrhuQRdYXw+1YccM/JLDpIrnEgQAXowyRrMX/TqClRVzMg0Rz2YxZNBOSYoAb/UJ4me6 cAMz9vzhijo2GQeBrkb0Dy5uxXUm86Iamkg0t3o9pKsrSFZ3hxTDjwVs4lnXmZSye40V hCcM6dlI6FL0o51WUdMydnmMTrocKMJIk+4fzDzZsol2XoMUvl/xt53KxSLzenZ1tD7W tNBQ== 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 74si31078pfp.353.2018.02.15.23.41.28; Thu, 15 Feb 2018 23:42:15 -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 S1424714AbeBOQRA (ORCPT + 99 others); Thu, 15 Feb 2018 11:17:00 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34332 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1165442AbeBOPoR (ORCPT ); Thu, 15 Feb 2018 10:44:17 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A148311A4; Thu, 15 Feb 2018 15:44:16 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab Subject: [PATCH 4.15 123/202] media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer type Date: Thu, 15 Feb 2018 16:17:03 +0100 Message-Id: <20180215151719.692726426@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151712.768794354@linuxfoundation.org> References: <20180215151712.768794354@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable 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: Greg Kroah-Hartman --- 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 @@ -179,8 +179,6 @@ static int __get_v4l2_format32(struct v4 return copy_from_user(&kp->fmt.meta, &up->fmt.meta, sizeof(kp->fmt.meta)) ? -EFAULT : 0; default: - pr_info("compat_ioctl32: unexpected VIDIOC_FMT type %d\n", - kp->type); return -EINVAL; } } @@ -233,8 +231,6 @@ static int __put_v4l2_format32(struct v4 return copy_to_user(&up->fmt.meta, &kp->fmt.meta, sizeof(kp->fmt.meta)) ? -EFAULT : 0; default: - pr_info("compat_ioctl32: unexpected VIDIOC_FMT type %d\n", - kp->type); return -EINVAL; } }