]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_last: incorrect arithmetics when restoring last used
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 5 Jul 2021 18:14:21 +0000 (20:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 6 Jul 2021 12:15:13 +0000 (14:15 +0200)
commite8486b6efdeeebe5367f0720e1895faaaac00645
treea7c84f4408e02290db52edb124f54746ffe307b4
parent57163ba782c5a1edd354de6b0904316edfcc2bfa
netfilter: nft_last: incorrect arithmetics when restoring last used

Subtract the jiffies that have passed by to current jiffies to fix last
used restoration.

Fixes: b5eff2730bd1 ("netfilter: nf_tables: add last expression")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_last.c