c8e3e221ce1ce0db8e10c78054a87f0bcf9b0bf6
[oweals/openwrt.git] /
1 From 7e3cada9dae5d030256605a28df9537b26e776a8 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Thu, 24 Jan 2019 16:36:19 +0000
4 Subject: [PATCH] staging: bcm2835-codec: Fix potentially uninitialised
5  vars
6
7 src_m2m_buf and dst_m2m_buf were printed in log messages
8 when there are code paths that don't initialise them.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
11 ---
12  .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c    | 2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
16 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
17 @@ -743,7 +743,7 @@ static void device_run(void *priv)
18         struct bcm2835_codec_ctx *ctx = priv;
19         struct bcm2835_codec_dev *dev = ctx->dev;
20         struct vb2_v4l2_buffer *src_buf, *dst_buf;
21 -       struct m2m_mmal_buffer *src_m2m_buf, *dst_m2m_buf;
22 +       struct m2m_mmal_buffer *src_m2m_buf = NULL, *dst_m2m_buf = NULL;
23         struct v4l2_m2m_buffer *m2m;
24         int ret;
25