[NETFILTER]: ip_ct_proto_gre_fini() cannot be __exit
It is invoked from failures paths of __init code. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
82bf7e97ac
commit
a776809755
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue