12f5826046a8997515f600eeded48b1d4ece7d39
[openwrt/staging/mans0n.git] /
1 From c0414e76f810112e8aa12935f898048e42755309 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 329/773] 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