Skip to content

Commit

Permalink
[NETFILTER]: ip_ct_proto_gre_fini() cannot be __exit
Browse files Browse the repository at this point in the history
It is invoked from failures paths of __init code.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jan 12, 2006
1 parent 82bf7e9 commit a776809
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/ipv4/netfilter/ip_conntrack_helper_pptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ static struct ip_conntrack_helper pptp = {
.help = conntrack_pptp_help
};

extern void __exit ip_ct_proto_gre_fini(void);
extern void ip_ct_proto_gre_fini(void);
extern int __init ip_ct_proto_gre_init(void);

/* ip_conntrack_pptp initialization */
Expand Down
5 changes: 4 additions & 1 deletion net/ipv4/netfilter/ip_conntrack_proto_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ int __init ip_ct_proto_gre_init(void)
return ip_conntrack_protocol_register(&gre);
}

void __exit ip_ct_proto_gre_fini(void)
/* This cannot be __exit, as it is invoked from ip_conntrack_helper_pptp.c's
* init() code on errors.
*/
void ip_ct_proto_gre_fini(void)
{
struct list_head *pos, *n;

Expand Down

0 comments on commit a776809

Please sign in to comment.