You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
926 B
Diff
28 lines
926 B
Diff
From 4027b08d96c68919f51c768a23877283ef5aefb9 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
Date: Fri, 8 Mar 2019 11:11:46 +0000
|
|
Subject: [PATCH] staging: vc-sm-cma: Ensure mutex and idr are
|
|
destroyed
|
|
|
|
map_lock and kernelid_map are created in probe, but not released
|
|
in release should the vcsm service not connect (eg running the
|
|
cutdown firmware).
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
---
|
|
drivers/staging/vc04_services/vc-sm-cma/vc_sm.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/drivers/staging/vc04_services/vc-sm-cma/vc_sm.c
|
|
+++ b/drivers/staging/vc04_services/vc-sm-cma/vc_sm.c
|
|
@@ -752,7 +752,9 @@ static int bcm2835_vc_sm_cma_remove(stru
|
|
|
|
/* Stop the videocore shared memory service. */
|
|
vc_sm_cma_vchi_stop(&sm_state->sm_handle);
|
|
+ }
|
|
|
|
+ if (sm_state) {
|
|
idr_destroy(&sm_state->kernelid_map);
|
|
|
|
/* Free the memory for the state structure. */
|