gpio-button-hotplug: fix data race
authorAndrey Erokhin <a.erokhin@inango-systems.com>
Wed, 6 Apr 2022 09:36:15 +0000 (12:36 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 9 Apr 2022 13:56:04 +0000 (15:56 +0200)
commit1e991e09b73c309321d21b9cb706bd5139d952d2
tree3857f1172de4aa7281e99cddb337a706fbe91454
parent19f3fcc884cab348cfba823f1175baf7aa4de15f
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>
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c