[Samsung Galaxy Alpha] modpunk:
Something is wrong with the size calculation for VIDEOC_QBUF.

V/ExynosVideoDecoder( 2823): MFC_Decoder_ExtensionEnqueue_Outbuf: shared outbuf(0) plane=0 addr=0x21 fd=33 len=245760 used=0

So the question is where is the dbuf->size value from ...

<7>[40589.561237] [c1] vb2: qbuf: buffer for plane 0 changed
<4>[40589.561254] [c1] ------------[ cut here ]------------
<4>[40589.561289] [c1] WARNING: at ../../../../../../kernel/samsung/slte/drivers/media/v4l2-core/videobuf2-ion.c:531 vb2_ion_attach_dmabuf+0xbc/0xf8()
<4>[40589.561307] [c1] dbuf->size(237568) is smaller than size(245760)
<4>[40589.561331] [c1] CPU: 1 PID: 859 Comm: CodecLooper Tainted: G W 3.10.9-cryptomilk-g29a60c0 #1
<4>[40589.561349] [c1] Backtrace:
<4>[40589.561383] [c1] [<c001337c>] (dump_backtrace+0x0/0x110) from [<c001351c>] (show_stack+0x18/0x1c)
<4>[40589.561401] [c1] r6:c04f9540 r5:00000009 r4:d33b7a90 r3:00000000
<4>[40589.561450] [c1] [<c0013504>] (show_stack+0x0/0x1c) from [<c0864690>] (dump_stack+0x24/0x28)
<4>[40589.561476] [c1] [<c086466c>] (dump_stack+0x0/0x28) from [<c0032784>] (warn_slowpath_common+0x58/0x70)
<4>[40589.561499] [c1] [<c003272c>] (warn_slowpath_common+0x0/0x70) from [<c0032808>] (warn_slowpath_fmt+0x38/0x40)
<4>[40589.561514] [c1] r8:00000001 r7:e9b7c2c0 r6:0003c000 r5:c4d50b00 r4:fffffff2
<4>[40589.561514] r3:00000009
<4>[40589.561573] [c1] [<c00327d0>] (warn_slowpath_fmt+0x0/0x40) from [<c04f9540>] (vb2_ion_attach_dmabuf+0xbc/0xf8)
<4>[40589.561588] [c1] r3:0003a000 r2:c0cc57dc
<4>[40589.561625] [c1] [<c04f9484>] (vb2_ion_attach_dmabuf+0x0/0xf8) from [<c0867370>] (__qbuf_dmabuf+0x300/0x37c)
<4>[40589.561639] [c1] r8:e4fb6444 r7:e97e718c r6:c4d50b00 r5:e4fb6644 r4:d33b7b04
<4>[40589.561691] [c1] [<c0867070>] (__qbuf_dmabuf+0x0/0x37c) from [<c0867434>] (__buf_prepare+0x48/0xdc)
<4>[40589.561711] [c1] [<c08673ec>] (__buf_prepare+0x0/0xdc) from [<c04f6224>] (vb2_qbuf+0x1e8/0x370)
<4>[40589.561725] [c1] r6:00000000 r5:00000000 r4:e97e718c r3:00000000
<4>[40589.561769] [c1] [<c04f603c>] (vb2_qbuf+0x0/0x370) from [<c050f57c>] (vidioc_qbuf+0x5c/0x2d8)
<4>[40589.561785] [c1] r9:c0efc6a8 r8:00000000 r7:e5c5d400 r6:d33b7e28 r5:c1032804
<4>[40589.561785] r4:e97e7004
<4>[40589.561845] [c1] [<c050f520>] (vidioc_qbuf+0x0/0x2d8) from [<c04e9944>] (v4l_qbuf+0x44/0x48)
<4>[40589.561867] [c1] [<c04e9900>] (v4l_qbuf+0x0/0x48) from [<c04ea68c>] (__video_do_ioctl+0x258/0x2c4)
<4>[40589.561884] [c1] r7:c08e27d4 r6:c04e9900 r5:c044560f r4:e9dbd000
<4>[40589.561933] [c1] [<c04ea434>] (__video_do_ioctl+0x0/0x2c4) from [<c04ea88c>] (video_usercopy+0x194/0x424)
<4>[40589.561955] [c1] [<c04ea6f8>] (video_usercopy+0x0/0x424) from [<c04eab34>] (video_ioctl2+0x18/0x1c)
<4>[40589.561981] [c1] [<c04eab1c>] (video_ioctl2+0x0/0x1c) from [<c04e581c>] (v4l2_ioctl+0x11c/0x144)
<4>[40589.562007] [c1] [<c04e5700>] (v4l2_ioctl+0x0/0x144) from [<c01256c8>] (do_vfs_ioctl+0x410/0x5d8)
<4>[40589.562020] [c1] r8:e768eae0 r7:00000001 r6:00000000 r5:e5029c00 r4:acca7b68
<4>[40589.562020] r3:c04e5700
<4>[40589.562075] [c1] [<c01252b8>] (do_vfs_ioctl+0x0/0x5d8) from [<c0125908>] (SyS_ioctl+0x78/0x88)
<4>[40589.562099] [c1] [<c0125890>] (SyS_ioctl+0x0/0x88) from [<c000f12c>] (__sys_trace_return+0x0/0x14)
<4>[40589.562112] [c1] r9:d33b6000 r8:c000f144 r7:00000036 r6:00000001 r5:0000001a
<4>[40589.562112] r4:acca7b68
<4>[40589.562163] [c1] ---[ end trace f99b73169b0bfbe6 ]---
<7>[40589.562177] [c1] vb2: qbuf: failed to attach dmabuf
<7>[40589.562195] [c1] vb2: qbuf: buffer preparation failed: -14
<7>[40589.562211] [c1] vidioc_qbuf:1740: End of enqueue(0) : -14
<7>[40589.562226] [c1] vidioc_qbuf:1743: leave