linux-stable/drivers/staging/vc04_services/vchiq-mmal
Dave Stevenson afc023da53 staging: mmal-vchiq: Fix incorrect static vchiq_instance.
For some reason lost in history function vchiq_mmal_init used
a static variable for storing the vchiq_instance.
This value is retrieved from vchiq per instance, so worked fine
until you try to call vchiq_mmal_init multiple times concurrently
when things then go wrong. This seemed to happen quite frequently
if using the cutdown firmware (no MMAL or VCSM services running)
as the vchiq_connect then failed, and one or other vchiq_shutdown
was working on an invalid handle.

Remove the static so that each caller gets a unique vchiq_instance.

Fixes: 7b3ad5abf0 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1621979857-26754-1-git-send-email-stefan.wahren@i2se.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-27 12:59:57 +02:00
..
Kconfig staging: bcm2835: fix vchiq_mmal dependencies 2020-12-07 15:07:24 +01:00
Makefile staging: vchiq: Move vchiq.h into include directory 2020-07-01 15:47:08 +02:00
mmal-common.h staging: mmal-vchiq: Make a mmal_buf struct for passing parameters 2020-07-01 15:45:22 +02:00
mmal-encodings.h
mmal-msg-common.h
mmal-msg-format.h
mmal-msg-port.h
mmal-msg.h staging: vchiq: Unify fourcc definition mechanisms 2020-07-01 15:47:06 +02:00
mmal-parameters.h staging: mmal-vchiq: Fix formatting errors in mmal_parameters.h 2020-07-01 15:45:23 +02:00
mmal-vchiq.c staging: mmal-vchiq: Fix incorrect static vchiq_instance. 2021-05-27 12:59:57 +02:00
mmal-vchiq.h staging: mmal-vchiq: Fix client_component for 64 bit kernel 2020-07-01 15:45:22 +02:00