gpio-button-hotplug: fix data race
authorAndrey Erokhin <a.erokhin@inango-systems.com>
Wed, 6 Apr 2022 09:36:15 +0000 (12:36 +0300)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 10 Apr 2022 15:26:01 +0000 (16:26 +0100)
commit8f4124c2521c30a79270163c8d6c4ccda336fb8e
treecc7f6962e9bb450ff08461e93092014b8e3c8ec0
parent0db5044f511650bb00a397de1cc63d7f4883a2f5
gpio-button-hotplug: fix data race

bh_event_add_var can be called by multiple threads concurrently,
so it shall not use a static char buffer

Signed-off-by: Andrey Erokhin <a.erokhin@inango-systems.com>
(cherry picked from commit 1e991e09b73c309321d21b9cb706bd5139d952d2)
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c