Received: by 10.223.185.116 with SMTP id b49csp2222499wrg; Thu, 15 Feb 2018 08:19:51 -0800 (PST) X-Google-Smtp-Source: AH8x227iQULr7lD4eOWnhbNqDgxSz+D9E1+Xn9gHxDNYdZaAZJVflDnYT4Ix910+lSJ1sAgwxERK X-Received: by 10.99.153.1 with SMTP id d1mr2599097pge.338.1518711591788; Thu, 15 Feb 2018 08:19:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518711591; cv=none; d=google.com; s=arc-20160816; b=vA9bFu4E8cXVpzSieisJN9mADMPoMooWeFxh2yhefHymN1tr3AricPPQ95OVM1JVNx /KLNod06MZw47E00Y2jAtHwB6foqtctd++h9v+VkJ57xx09Uzm70NHsNQ8tgnar/i/la DMb6MkDmDUM1SezYmu5PaIEWssTu6cMCZpE6cZ8wuAN1eU8VGuZqQRdnEHpYi3zDGfzd 364ml2UqUe0MC/hZxtB4zuQJ8+ZHmTCWDtWvbpZv52Ai2Lnikcmtas54vDdfesk0+Vvy 68+inqx8RSG1rtRdKpqLJ35J/Fq1r7aok20oT1zzdKe65f95VEspKireuLzaH2oKcg3b 8JUQ== 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=nTnYIxmiw5MxBlaxGN1Yl24xTFZhXs31377RJlqt4WQ=; b=e83FBhxEatCaHdkdkTFlWbxG1BxmZAaVO647H8P1p7Qob9LeqigwtwC2YWlqoxS2PH GalTa1RdqsReYlCTktz/QXon2/D8XWkwJEgjhBbgZ85sDONF6ukhICkz22EZOFzi/j+y rUQXiLm+yjynWanYs57RYFdqESlHx2Ha7mKlDYajYBzDU+aKtx2wWBL+SVDUW7yrE2S2 FaCYNB/3pNhIUd28AT6C6aO/6C8aIUzEnTUIE17LLUVZVjH00auzgLa3JVCg33+IKZG8 Upu0XAPdl2RwxA+1eRjcq9e27eApHjE1Gdjae+6rsnj5b8GrBvDD1tLhlWE0pUyrffti 4YaA== 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 94-v6si1531195plf.451.2018.02.15.08.19.37; Thu, 15 Feb 2018 08:19:51 -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 S1165545AbeBOQS1 (ORCPT + 99 others); Thu, 15 Feb 2018 11:18:27 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34150 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1165355AbeBOPn4 (ORCPT ); Thu, 15 Feb 2018 10:43:56 -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 EEF91118E; Thu, 15 Feb 2018 15:43:55 +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 116/202] media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF Date: Thu, 15 Feb 2018 16:16:56 +0100 Message-Id: <20180215151719.313716914@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 3ee6d040719ae09110e5cdf24d5386abe5d1b776 upstream. The result of the VIDIOC_PREPARE_BUF ioctl was never copied back to userspace since it was missing in the switch. 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 | 1 + 1 file changed, 1 insertion(+) --- a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c +++ b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c @@ -1052,6 +1052,7 @@ static long do_video_ioctl(struct file * err = put_v4l2_create32(&karg.v2crt, up); break; + case VIDIOC_PREPARE_BUF: case VIDIOC_QUERYBUF: case VIDIOC_QBUF: case VIDIOC_DQBUF: