Commit 17efdd45 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Herbert Xu

[BRIDGE]: Lost call to br_fdb_fini() in br_init() error path

In case the br_netfilter_init() (or any subsequent call) 
fails, the br_fdb_fini() must be called to free the allocated
in br_fdb_init() br_fdb_cache kmem cache.
Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 0a112258
...@@ -39,7 +39,7 @@ static int __init br_init(void) ...@@ -39,7 +39,7 @@ static int __init br_init(void)
err = br_fdb_init(); err = br_fdb_init();
if (err) if (err)
goto err_out1; goto err_out;
err = br_netfilter_init(); err = br_netfilter_init();
if (err) if (err)
...@@ -65,6 +65,8 @@ err_out3: ...@@ -65,6 +65,8 @@ err_out3:
err_out2: err_out2:
br_netfilter_fini(); br_netfilter_fini();
err_out1: err_out1:
br_fdb_fini();
err_out:
llc_sap_put(br_stp_sap); llc_sap_put(br_stp_sap);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment