{"id":4179,"url":"https://patchwork.libcamera.org/api/1.1/patches/4179/?format=json","web_url":"https://patchwork.libcamera.org/patch/4179/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200623190836.53446-6-paul.elder@ideasonboard.com>","date":"2020-06-23T19:08:19","name":"[libcamera-devel,v3,05/22] v4l2: v4l2_camera_proxy: Clear reserved field in reqbufs","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"69fc4ad4975c76aceac7ace8e681a51338c90eee","submitter":{"id":17,"url":"https://patchwork.libcamera.org/api/1.1/people/17/?format=json","name":"Paul Elder","email":"paul.elder@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/4179/mbox/","series":[{"id":1034,"url":"https://patchwork.libcamera.org/api/1.1/series/1034/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1034","date":"2020-06-23T19:08:14","name":"Support v4l2-compliance","version":3,"mbox":"https://patchwork.libcamera.org/series/1034/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/4179/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/4179/checks/","tags":{},"headers":{"Return-Path":"<paul.elder@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DC748609A3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 23 Jun 2020 21:09:13 +0200 (CEST)","from jade.rasen.tech (unknown\n\t[IPv6:2400:4051:61:600:8147:f2a2:a8c6:9087])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 807692A9;\n\tTue, 23 Jun 2020 21:09:12 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"N0Q6R0BQ\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1592939353;\n\tbh=D/5CZ6AfrseLv45TLofZILMxLDBhy8pAbHCCBX/D3h4=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=N0Q6R0BQmN60yol2t2oZWnwYBCghRKujTVN5hZGohO4NahwLqWkBFgqyt748zZW/2\n\tv1PxJhjsC56Uar9EYRBJ/5AHi9XWFtpmQjircnyUTBc7ofGKR/I9hAhiqJ5IPlmlVk\n\tiqxMqep3kTCK4o45wpAIncu1tynZ5ShGiqpOuSdM=","From":"Paul Elder <paul.elder@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 24 Jun 2020 04:08:19 +0900","Message-Id":"<20200623190836.53446-6-paul.elder@ideasonboard.com>","X-Mailer":"git-send-email 2.27.0","In-Reply-To":"<20200623190836.53446-1-paul.elder@ideasonboard.com>","References":"<20200623190836.53446-1-paul.elder@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 05/22] v4l2: v4l2_camera_proxy: Clear\n\treserved field in reqbufs","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Tue, 23 Jun 2020 19:09:14 -0000"},"content":"Clear the reserved field in arg struct v4l2_reqbuffers of\nVIDIOC_REQBUFS.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n\n---\nNew in v3\n- split from a conglomerate of v4l2-compliance fixes patch\n---\n src/v4l2/v4l2_camera_proxy.cpp | 1 +\n 1 file changed, 1 insertion(+)","diff":"diff --git a/src/v4l2/v4l2_camera_proxy.cpp b/src/v4l2/v4l2_camera_proxy.cpp\nindex 7262453..5acb036 100644\n--- a/src/v4l2/v4l2_camera_proxy.cpp\n+++ b/src/v4l2/v4l2_camera_proxy.cpp\n@@ -355,6 +355,7 @@ int V4L2CameraProxy::vidioc_reqbufs(V4L2CameraFile *file, struct v4l2_requestbuf\n \t\treturn ret;\n \n \targ->capabilities = V4L2_BUF_CAP_SUPPORTS_MMAP;\n+\tmemset(arg->reserved, 0, sizeof(arg->reserved));\n \n \tif (arg->count == 0) {\n \t\trelease(file);\n","prefixes":["libcamera-devel","v3","05/22"]}