Skip to content

Commit 05c8cab

Browse files
6by9popcornmix
authored andcommitted
BCM2835-V4L2: Return buffers to videobuf2 on shutdown
#817 Fixes the kernel warning from videobuf2 as buffers are now returned as they are being flushed on stop_streaming.
1 parent 90d8a83 commit 05c8cab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/media/platform/bcm2835/bcm2835-camera.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ static void buffer_cb(struct vchiq_mmal_instance *instance,
404404
}
405405
} else {
406406
/* signal frame completion */
407+
vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR);
407408
complete(&dev->capture.frame_cmplt);
408409
}
409410
}

0 commit comments

Comments
 (0)