Skip to content

Commit

Permalink
staging: bcm2835-codec: Fix potentially uninitialised vars
Browse files Browse the repository at this point in the history
src_m2m_buf and dst_m2m_buf were printed in log messages
when there are code paths that don't initialise them.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
  • Loading branch information
6by9 authored and Phil Elwell committed May 28, 2019
1 parent 8f02d16 commit 748bc7c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -743,7 +743,7 @@ static void device_run(void *priv)
struct bcm2835_codec_ctx *ctx = priv;
struct bcm2835_codec_dev *dev = ctx->dev;
struct vb2_v4l2_buffer *src_buf, *dst_buf;
struct m2m_mmal_buffer *src_m2m_buf, *dst_m2m_buf;
struct m2m_mmal_buffer *src_m2m_buf = NULL, *dst_m2m_buf = NULL;
struct v4l2_m2m_buffer *m2m;
int ret;

Expand Down

0 comments on commit 748bc7c

Please sign in to comment.