]> 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)
commit8239522f8dcbab79192e9f4ffd9f69326dba9e4b
treee73dd0ae1617d8563010024c710b23d979daeec0
parent979a138bf55388428ce6960bbb16103d866c2ca7
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: 1a2a2f1fc8b95 ("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