Merge tag 'v4.20-rc7' into patchwork
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Dec 2018 15:34:24 +0000 (10:34 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Dec 2018 15:34:24 +0000 (10:34 -0500)
Linux 4.20-rc7

* tag 'v4.20-rc7': (403 commits)
  Linux 4.20-rc7
  scripts/spdxcheck.py: always open files in binary mode
  checkstack.pl: fix for aarch64
  userfaultfd: check VM_MAYWRITE was set after verifying the uffd is registered
  fs/iomap.c: get/put the page in iomap_page_create/release()
  hugetlbfs: call VM_BUG_ON_PAGE earlier in free_huge_page()
  memblock: annotate memblock_is_reserved() with __init_memblock
  psi: fix reference to kernel commandline enable
  arch/sh/include/asm/io.h: provide prototypes for PCI I/O mapping in asm/io.h
  mm/sparse: add common helper to mark all memblocks present
  mm: introduce common STRUCT_PAGE_MAX_SHIFT define
  alpha: fix hang caused by the bootmem removal
  XArray: Fix xa_alloc when id exceeds max
  drm/vmwgfx: Protect from excessive execbuf kernel memory allocations v3
  MAINTAINERS: Daniel for drm co-maintainer
  drm/amdgpu: drop fclk/gfxclk ratio setting
  IB/core: Fix oops in netdev_next_upper_dev_rcu()
  dm thin: bump target version
  drm/vmwgfx: remove redundant return ret statement
  drm/i915: Flush GPU relocs harder for gen3
  ...

1  2 
Documentation/media/uapi/v4l/extended-controls.rst
MAINTAINERS
drivers/media/common/videobuf2/videobuf2-core.c
drivers/media/common/videobuf2/videobuf2-v4l2.c
drivers/media/platform/vicodec/vicodec-core.c
drivers/media/platform/vivid/vivid-vbi-cap.c
drivers/media/platform/vivid/vivid-vid-cap.c
drivers/media/platform/vivid/vivid-vid-out.c
drivers/media/v4l2-core/v4l2-ctrls.c
drivers/staging/media/sunxi/cedrus/cedrus_hw.c
include/uapi/linux/videodev2.h

diff --cc MAINTAINERS
Simple merge
index 2b7daff634257c9e135b4a96da19d1b8da63e3ca,13fb69c58967d0dbf527c4e0f39653410550da5d..0d7876f5acf0dc132443d123cf345ae44dc7274a
@@@ -1006,14 -997,23 +1006,21 @@@ static int vicodec_start_streaming(stru
  
        q_data->sequence = 0;
  
-       if (!V4L2_TYPE_IS_OUTPUT(q->type))
+       if (!V4L2_TYPE_IS_OUTPUT(q->type)) {
+               if (!ctx->is_enc) {
+                       state->width = q_data->width;
+                       state->height = q_data->height;
+               }
                return 0;
+       }
  
-       state->width = q_data->width;
-       state->height = q_data->height;
+       if (ctx->is_enc) {
+               state->width = q_data->width;
+               state->height = q_data->height;
+       }
        state->ref_frame.width = state->ref_frame.height = 0;
 -      state->ref_frame.luma = kvmalloc(size + 2 * size / chroma_div,
 -                                       GFP_KERNEL);
 -      ctx->comp_max_size = size + 2 * size / chroma_div +
 -                           sizeof(struct fwht_cframe_hdr);
 +      state->ref_frame.luma = kvmalloc(total_planes_size, GFP_KERNEL);
 +      ctx->comp_max_size = total_planes_size + sizeof(struct fwht_cframe_hdr);
        state->compressed_frame = kvmalloc(ctx->comp_max_size, GFP_KERNEL);
        if (!state->ref_frame.luma || !state->compressed_frame) {
                kvfree(state->ref_frame.luma);
Simple merge
Simple merge