![]() 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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mmal-common.h | ||
mmal-encodings.h | ||
mmal-msg-common.h | ||
mmal-msg-format.h | ||
mmal-msg-port.h | ||
mmal-msg.h | ||
mmal-parameters.h | ||
mmal-vchiq.c | ||
mmal-vchiq.h |