[media] staging: media: davinci: vpfe: release buffers in case start_streaming call...
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Sun, 23 Mar 2014 06:37:25 +0000 (03:37 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 16 Apr 2014 21:26:47 +0000 (18:26 -0300)
commit8f7402a304bb80bcb5812353ef07189a1514554a
tree25defb08a9f8fb9b61a5a9e9db7bee8caad0c2df
parent933fd6e57d594ca9ae06894bb91d3fe067397dfa
[media] staging: media: davinci: vpfe: release buffers in case start_streaming call back fails

this patch releases the buffer by calling vb2_buffer_done(),
with state marked as VB2_BUF_STATE_QUEUED if start_streaming()
call back fails.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/staging/media/davinci_vpfe/vpfe_video.c