From: Hans Verkuil Date: Mon, 4 Aug 2014 10:29:59 +0000 (-0300) Subject: [media] pwc: fix WARN_ON X-Git-Tag: fixes-v4.0-rc1~147^2~181 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80b0963e1698e10a58451f0508058fc20e48334a;p=pandora-kernel.git [media] pwc: fix WARN_ON If start_streaming fails, then the buffers must be given back to vb2 with state QUEUED, not ERROR. Otherwise a WARN_ON will be generated. In the disconnect it is pointless to call pwc_cleanup_queued_bufs() as stop_streaming() will be called anyway. Signed-off-by: Hans Verkuil Tested-by: Hans Verkuil Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed