• spiiroin's avatar
    [worker] Use private copy of mode data. JB#45312 · 83df3088
    spiiroin authored
    When a dynamic mode is activated from the worker thread, a pointer to
    shared mode data is cached. If mode data gets invalidated due to the main
    thread reloading configuration files, the worker thread will dereference
    a stale pointer during mode deactivation.
    
    Cache clone of mode data instead of just holding pointer to shared data.
    
    Note that this only fixes logical error in expected behavior during
    config reload, there is still race condition in mode data duplication
    stage.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    83df3088
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.depend Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
Makefile.custom Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
config-static.h Loading commit data...
configure.ac Loading commit data...
depend_filter.py Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...