From: Hans Verkuil Date: Fri, 28 Feb 2014 15:49:18 +0000 (-0300) Subject: [media] vb2: properly clean up PREPARED and QUEUED buffers X-Git-Tag: v3.15-rc1~85^2~161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb64dca805f091b52dbe8d6504390f63d961cbbd;p=pandora-kernel.git [media] vb2: properly clean up PREPARED and QUEUED buffers If __reqbufs was called then existing buffers are freed. However, if that happens without ever having started STREAMON, but if buffers have been queued, then the buf_finish op is never called. Add a call to __vb2_queue_cancel in __reqbufs so that these buffers are cleaned up there as well. Signed-off-by: Hans Verkuil Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed