]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_IDLETIMER: fix sysfs callback function type
authorSami Tolvanen <samitolvanen@google.com>
Wed, 27 Feb 2019 18:19:10 +0000 (10:19 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 1 Mar 2019 13:36:57 +0000 (14:36 +0100)
commit7733b2a3bafc963fc64a576a560a8d89cb6872e3
tree5ba7e309354951335d503a30cf76bc420b9342f1
parent8006ce46e9e093c90a65940fd6cb0a76630bda53
netfilter: xt_IDLETIMER: fix sysfs callback function type

Use struct device_attribute instead of struct idletimer_tg_attr, and
the correct callback function type to avoid indirect call mismatches
with Control Flow Integrity checking.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_IDLETIMER.c