]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_hashlimit: use s->file instead of s->private
authorCong Wang <xiyou.wangcong@gmail.com>
Wed, 5 Sep 2018 18:41:31 +0000 (11:41 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 10 Sep 2018 23:35:32 +0000 (01:35 +0200)
commit509d7c472eec97aff20824c39a42b3e180b13d90
tree4a659dc5e6c5e3787df76f23928d5972ab692fed
parentfad1fd3203667ddd7683d3062f0c3524704b82de
netfilter: xt_hashlimit: use s->file instead of s->private

After switching to the new procfs API, it is supposed to
retrieve the private pointer from PDE_DATA(file_inode(s->file)),
s->private is no longer referred.

Fixes: 62d7fc94b7da ("netfilter/x_tables: switch to proc_create_seq_private")
Reported-by: Sami Farin <hvtaifwkbgefbaei@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Tested-by: Sami Farin <hvtaifwkbgefbaei@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_hashlimit.c