Received: by 10.223.185.116 with SMTP id b49csp6372891wrg; Wed, 28 Feb 2018 08:20:47 -0800 (PST) X-Google-Smtp-Source: AH8x224LdNcNSgnncBlAgrLzIb19BnWWBJZXvqRSoqD7gPM0Ctxtr283dWKAJVC2USrS0TNDYvh1 X-Received: by 10.98.160.142 with SMTP id p14mr18443127pfl.134.1519834847490; Wed, 28 Feb 2018 08:20:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519834847; cv=none; d=google.com; s=arc-20160816; b=0HZkUD4ExOUydaWMJupHoUOvNl7cfwalPX1tNgTVR1jyEWlrMaidx/8eIsaDX+ziHa 7141Fhuezql585NnC8yX/WhvxCBhcHK61v1NppDnIkbaIK4/3w+Yo/0PCVytY6oHzD5U tb/YgTVwxQdBOTKxIIqggJwe4U4xUsf1yhV3E6pzKpoVwLsF0iCEQGPDZjLJONZn7pAP 0ABkMV/9jJqZ1CqhSAjvf4cUE+S+ChajUeUaB+7EyGJ0CLjYzpfmXpZk3pkLLbybMRzi S47koZxQpQRjXkPbhlv9FTpdQ5hPvBMhrMLM58iJrd0FWyRUOActpTA3qaHHDvglubEB Q+VA== 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=DQJGyxGntSjhhZClb2nXXakYk6Hl6/0H4rZGAKZ4FkY=; b=WoXHHZmlAnwoOtMb4DZEBsPScjKZ6Kau9cSYfJkHrGXlAzEyo3996U3YqbrdMMI8jm DlyEc8Qm+cIWUTtiSekYGS5Vixf9mclCuq4FIOZ25PtR3PJN8LtWSJxX9LDYmx8bxJ1b AxPVTuhArFKUEXIVadjgvTmDEvZzobrNshoOvqvrABaKhjNiDkRBkodb2eNv/rb9ha6E enhpY7AKJdAW/V8C+6HVrPvGxY6TtvJJ3j01nbcdOnWrQsE691hFy0ryINlAyUt6ftii YyfmwnnVcdXvVQwPvySVsCirxZR4/ABZIF4rKnMh/dL5cAXY6DwB/419jrNRUxENOANM S2NA== 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 e6si1192879pgt.198.2018.02.28.08.20.32; Wed, 28 Feb 2018 08:20:47 -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 S935068AbeB1QSH (ORCPT + 99 others); Wed, 28 Feb 2018 11:18:07 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:35287 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932298AbeB1QSE (ORCPT ); Wed, 28 Feb 2018 11:18:04 -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-0006XS-Gs; Wed, 28 Feb 2018 15:22:25 +0000 Received: from ben by deadeye with local (Exim 4.90_1) (envelope-from ) id 1er3Yk-0000JT-Tm; Wed, 28 Feb 2018 15:22:22 +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, "Mauro Carvalho Chehab" , "Sakari Ailus" , "Hans Verkuil" Date: Wed, 28 Feb 2018 15:20:18 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 242/254] media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF 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 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: Ben Hutchings --- 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 @@ -992,6 +992,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: