summaryrefslogtreecommitdiff
path: root/samples/seccomp/bpf-direct.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-02-02 05:08:59 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-11 16:29:21 +0200
commita2c7493c7f31c0e4d1dede9a179f853484f7dd1d (patch)
treee5df26ecdd45a84d6fc1f9536f262546fe8eea51 /samples/seccomp/bpf-direct.c
parentb16a6af97461f6d296422887502331b33c729b48 (diff)
media: vb2: core: Finish buffers at the end of the stream
commit 03703ed1debf777ea845aa9b50ba2e80a5e7dd3c upstream. If buffers were prepared or queued and the buffers were released without starting the queue, the finish mem op (corresponding to the prepare mem op) was never called to the buffers. Before commit a136f59c0a1f there was no need to do this as in such a case the prepare mem op had not been called yet. Address the problem by explicitly calling finish mem op when the queue is stopped if the buffer is in either prepared or queued state. Fixes: a136f59c0a1f ("[media] vb2: Move buffer cache synchronisation to prepare from queue") Cc: stable@vger.kernel.org # for v4.13 and up Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Tested-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/seccomp/bpf-direct.c')
0 files changed, 0 insertions, 0 deletions