From: Yasuyuki Kozakai Date: Tue, 25 Apr 2006 00:15:17 +0000 (-0700) Subject: [NETFILTER]: nf_conntrack: Fix module refcount dropping too far X-Git-Tag: v2.6.17-rc3~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1bbdebdba615ddd957de81103aa2f7fa0581952;p=pandora-kernel.git [NETFILTER]: nf_conntrack: Fix module refcount dropping too far If nf_ct_l3proto_find_get() fails to get the refcount of nf_ct_l3proto_generic, nf_ct_l3proto_put() will drop the refcount too far. This gets rid of '.me = THIS_MODULE' of nf_ct_l3proto_generic so that nf_ct_l3proto_find_get() doesn't try to get refcount of it. It's OK because its symbol is usable until nf_conntrack.ko is unloaded. This also kills unnecessary NULL pointer check as well. __nf_ct_proto_find() allways returns non-NULL pointer. Signed-off-by: Yasuyuki Kozakai Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed