)]}'
{
  "commit": "a50ef731e098167b1e8ab4abac2144bb0ef5a292",
  "tree": "d4136e7b2f494b396f58917a7cd3db71192432a6",
  "parents": [
    "0496c13ded02bd72426d189b777bf303fe490f62"
  ],
  "author": {
    "name": "Chen-Yu Tsai",
    "email": "wenst@chromium.org",
    "time": "Thu Dec 09 17:38:03 2021 +0100"
  },
  "committer": {
    "name": "Lee Jones",
    "email": "joneslee@google.com",
    "time": "Mon Apr 25 09:04:21 2022 +0000"
  },
  "message": "BACKPORT: media: v4l2-mem2mem: Apply DST_QUEUE_OFF_BASE on MMAP buffers across ioctls\n\n[ Upstream commit 8310ca94075e784bbb06593cd6c068ee6b6e4ca6 ]\n\nDST_QUEUE_OFF_BASE is applied to offset/mem_offset on MMAP capture buffers\nonly for the VIDIOC_QUERYBUF ioctl, while the userspace fields (including\noffset/mem_offset) are filled in for VIDIOC_{QUERY,PREPARE,Q,DQ}BUF\nioctls. This leads to differences in the values presented to userspace.\nIf userspace attempts to mmap the capture buffer directly using values\nfrom DQBUF, it will fail.\n\nMove the code that applies the magic offset into a helper, and call\nthat helper from all four ioctl entry points.\n\n[hverkuil: drop unnecessary \u0027\u003d 0\u0027 in v4l2_m2m_querybuf() for ret]\n\nBug: 223375145\nFixes: 7f98639def42 (\"V4L/DVB: add memory-to-memory device helper framework for videobuf\")\nFixes: 908a0d7c588e (\"[media] v4l: mem2mem: port to videobuf2\")\nSigned-off-by: Chen-Yu Tsai \u003cwenst@chromium.org\u003e\nSigned-off-by: Hans Verkuil \u003chverkuil-cisco@xs4all.nl\u003e\nSigned-off-by: Mauro Carvalho Chehab \u003cmchehab@kernel.org\u003e\nSigned-off-by: Sasha Levin \u003csashal@kernel.org\u003e\nSigned-off-by: Lee Jones \u003clee.jones@linaro.org\u003e\nChange-Id: Ifab9933f85f4ba7e0fadddf52debaf837830a06d\n(cherry picked from commit 6def3a5ed8ee24465edf6b30cdbe4b27c6d4e1df)\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b221b4e438a1a91f8e8bf31164390189288e1cdb",
      "old_mode": 33188,
      "old_path": "drivers/media/v4l2-core/v4l2-mem2mem.c",
      "new_id": "73190652c267bd61cddafa2ede59a3e98ac1f3ab",
      "new_mode": 33188,
      "new_path": "drivers/media/v4l2-core/v4l2-mem2mem.c"
    }
  ]
}
