v4l2: Block recursive calls to resurect_buffer
authorMatt Fischer <matt.fischer@garmin.com>
Wed, 28 Jun 2017 19:05:27 +0000 (14:05 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 29 Jun 2017 19:54:42 +0000 (15:54 -0400)
commit52a565803032a68e778ce8c2e1a953909db4e2bd
treed5ca4bb21e83a0e4b4ee4e8da84aeafceae8a911
parentaa8ac28d86a5c45314a6d62cfd579842f8aecad2
v4l2: Block recursive calls to resurect_buffer

When resurrecting a buffer, the subsequent free call can result
in the group-released handler being called again, which causes
a recursive loop.  This patch blocks the signal handler during
the time that it executes, ensuring that the loop will not occur.

https://bugzilla.gnome.org/show_bug.cgi?id=759292
sys/v4l2/gstv4l2bufferpool.c