netfilter: xt_recent: use proc_create_data()
Fixes a crash in recent_seq_start:
BUG: unable to handle kernel NULL pointer dereference at
0000000000000100
IP: [<
ffffffffa002119c>] recent_seq_start+0x4c/0x90 [xt_recent]
PGD
17d33c067 PUD
107afe067 PMD 0
Oops: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC
CPU 0
Modules linked in: ipt_LOG xt_recent af_packet iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 xt_tcpudp iptable_filter ip_tables x_tables ext2 nls_utf8 fuse sr_mod cdrom [last unloaded: ntfs]
Pid: 32373, comm: cat Not tainted 2.6.27-
04ab591808565f968d4406f6435090ad671ebdab #6
RIP: 0010:[<
ffffffffa002119c>] [<
ffffffffa002119c>] recent_seq_start+0x4c/0x90 [xt_recent]
RSP: 0018:
ffff88015fed7e28 EFLAGS:
00010246
...
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>