v4l2bufferpool: Early catch short allocation
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 9 Apr 2014 16:53:19 +0000 (12:53 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 8 May 2014 19:56:36 +0000 (15:56 -0400)
commitdb3d2f35f0d543b3e27dad51a41670ec5ce59924
tree046a569b74afe51b2a059104506a1ecec27dee44
parent2b0ac06ade6d1efec65b4e83552e33e6bb6f2795
v4l2bufferpool: Early catch short allocation

Catch short allocation after saving the format. This is not a catch all, but should catch
most of the miss-behaving drivers when doing S_FMT/G_FMT and avoid potential crash.
sys/v4l2/gstv4l2object.c