]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
netfilter: xt_recent: use proc_create_data()
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 20 Oct 2008 10:33:49 +0000 (03:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Oct 2008 10:33:49 +0000 (03:33 -0700)
commitb09eec161b0d416cac0f4758042efdf8f912ce27
tree0ac7437951744c926eab83f44031f1585564b35b
parent311670f3ea90115f2f1840e3e9770ed71e06e6c3
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>
net/netfilter/xt_recent.c