]> git.baikalelectronics.ru Git - kernel.git/commit
static_call: Fix static_call_set_init()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 18 Mar 2021 10:27:19 +0000 (11:27 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 19 Mar 2021 12:16:44 +0000 (13:16 +0100)
commit95768a178d79d966f4ffb3dd9d724db2f034d287
treee73dd0ae1617d8563010024c710b23d979daeec0
parent5460ebf8f301368bca661443717eab71350d9be3
static_call: Fix static_call_set_init()

It turns out that static_call_set_init() does not preserve the other
flags; IOW. it clears TAIL if it was set.

Fixes: 7ace581d7bcd8 ("static_call: Add inline static call infrastructure")
Reported-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Sumit Garg <sumit.garg@linaro.org>
Link: https://lkml.kernel.org/r/20210318113610.519406371@infradead.org
kernel/static_call.c