diff options
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-ioread.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-ioread.c b/drivers/media/video/pvrusb2/pvrusb2-ioread.c index b4824782d858..bba6115c9ae8 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-ioread.c +++ b/drivers/media/video/pvrusb2/pvrusb2-ioread.c | |||
@@ -223,7 +223,10 @@ int pvr2_ioread_setup(struct pvr2_ioread *cp,struct pvr2_stream *sp) | |||
223 | " pvr2_ioread_setup (setup) id=%p",cp); | 223 | " pvr2_ioread_setup (setup) id=%p",cp); |
224 | pvr2_stream_kill(sp); | 224 | pvr2_stream_kill(sp); |
225 | ret = pvr2_stream_set_buffer_count(sp,BUFFER_COUNT); | 225 | ret = pvr2_stream_set_buffer_count(sp,BUFFER_COUNT); |
226 | if (ret < 0) return ret; | 226 | if (ret < 0) { |
227 | mutex_unlock(&cp->mutex); | ||
228 | return ret; | ||
229 | } | ||
227 | for (idx = 0; idx < BUFFER_COUNT; idx++) { | 230 | for (idx = 0; idx < BUFFER_COUNT; idx++) { |
228 | bp = pvr2_stream_get_buffer(sp,idx); | 231 | bp = pvr2_stream_get_buffer(sp,idx); |
229 | pvr2_buffer_set_buffer(bp, | 232 | pvr2_buffer_set_buffer(bp, |