brcm2708: update to latest patches from RPi foundation
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0483-staging-mmal-vchiq-Free-the-event-context-for-contro.patch
1 From e8ebe52344c73c8edad490c0ff601a763893c276 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Wed, 1 May 2019 13:27:23 +0100
4 Subject: [PATCH 483/773] staging: mmal-vchiq: Free the event context for
5 control ports
6
7 vchiq_mmal_component_init calls init_event_context for the
8 control port, but vchiq_mmal_component_finalise didn't free
9 it, causing a memory leak..
10
11 Add the free call.
12
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
14 ---
15 drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c | 2 ++
16 1 file changed, 2 insertions(+)
17
18 --- a/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c
19 +++ b/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c
20 @@ -1982,6 +1982,8 @@ int vchiq_mmal_component_finalise(struct
21 for (idx = 0; idx < component->clocks; idx++)
22 free_event_context(&component->clock[idx]);
23
24 + free_event_context(&component->control);
25 +
26 mutex_unlock(&instance->vchiq_mutex);
27
28 return ret;