Skip to content

Commit 55a4a09

Browse files
committed
BCM2835-V4L2: Return buffers to videobuf2 on shutdown
raspberrypi#817 Fixes the kernel warning from videobuf2 as buffers are now returned as they are being flushed on stop_streaming.
1 parent d901846 commit 55a4a09

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
@@ -390,6 +390,7 @@ static void buffer_cb(struct vchiq_mmal_instance *instance,
390390
}
391391
} else {
392392
/* signal frame completion */
393+
vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR);
393394
complete(&dev->capture.frame_cmplt);
394395
}
395396
}

0 commit comments

Comments
 (0)