kernel: bump 5.15 to 5.15.155
[openwrt/staging/blocktrron.git] / target / linux / bcm27xx / patches-5.15 / 950-0138-staging-mmal-vchiq-Fix-memory-leak-in-error-path.patch
index dda0d26c000dd6b8657b050d051784324390a352..47ed459c00ad80ec9b8d8f49a75bc6f3551aae86 100644 (file)
@@ -14,7 +14,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
 
 --- a/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c
 +++ b/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c
-@@ -1767,9 +1767,26 @@ static void free_event_context(struct vc
+@@ -1768,9 +1768,26 @@ static void free_event_context(struct vc
  {
        struct mmal_msg_context *ctx = port->event_context;
  
@@ -41,7 +41,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
  }
  
  /* Initialise a mmal component and its ports
-@@ -1867,6 +1884,7 @@ int vchiq_mmal_component_init(struct vch
+@@ -1868,6 +1885,7 @@ int vchiq_mmal_component_init(struct vch
  
  release_component:
        destroy_component(instance, component);
@@ -49,7 +49,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
  unlock:
        if (component)
                component->in_use = 0;
-@@ -1882,7 +1900,7 @@ EXPORT_SYMBOL_GPL(vchiq_mmal_component_i
+@@ -1883,7 +1901,7 @@ EXPORT_SYMBOL_GPL(vchiq_mmal_component_i
  int vchiq_mmal_component_finalise(struct vchiq_mmal_instance *instance,
                                  struct vchiq_mmal_component *component)
  {
@@ -58,7 +58,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
  
        if (mutex_lock_interruptible(&instance->vchiq_mutex))
                return -EINTR;
-@@ -1894,14 +1912,7 @@ int vchiq_mmal_component_finalise(struct
+@@ -1895,14 +1913,7 @@ int vchiq_mmal_component_finalise(struct
  
        component->in_use = 0;