diff options
author | Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> | 2006-04-24 17:15:17 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-04-24 17:27:28 -0700 |
commit | e1bbdebdba615ddd957de81103aa2f7fa0581952 (patch) | |
tree | 58db2991440cfeca18678bdeed5dd45d38b186bb /net/bridge/br_stp.c | |
parent | d8fe3f19203b1f5070358aaa292d33295258b448 (diff) | |
download | blackbird-op-linux-e1bbdebdba615ddd957de81103aa2f7fa0581952.tar.gz blackbird-op-linux-e1bbdebdba615ddd957de81103aa2f7fa0581952.zip |
[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 <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_stp.c')
0 files changed, 0 insertions, 0 deletions