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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:56:02 +0000 (08:56 +0200)
commit41b2bc509cda07fceceefb3d347380a935a2098b
tree9c7e70c7851cb34faf81c31c0c8baafdd59c95d8
parent419033c32a82dad2d093d1ecdd0d3bf83fac2ddb
netfilter: xt_hashlimit: use s->file instead of s->private

[ Upstream commit 1286df269f498165061e0cf8092ca212545dbb5a ]

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: 1cd671827290 ("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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/xt_hashlimit.c