From: Ricardo Ribalda Date: Wed, 8 Jan 2014 08:01:33 +0000 (-0300) Subject: [media] vb2: Check if there are buffers before streamon X-Git-Tag: v3.14-rc2~14^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=548df7831adc34eca3ccefa29f768cef84315d6e;p=pandora-kernel.git [media] vb2: Check if there are buffers before streamon This patch adds a test preventing streamon() if there is no buffer ready. Without this patch, a user could call streamon() before preparing any buffer. This leads to a situation where if he calls close() before calling streamoff() the device is kept streaming. Signed-off-by: Ricardo Ribalda Delgado Reviewed-by: Marek Szyprowski Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed