diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-04-07 05:57:07 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:28:51 -0400 |
commit | 87a596e0b8bc344bd6bfebe83b56d11fb79ee23a (patch) | |
tree | 4fecaa826829e73976319dea651152fe78fce0ff /net/bridge/br.c | |
parent | ffe1d49cc300f3dff990093aa952a2fbb371c1b6 (diff) |
bridge: check kmem_cache_create() error
This patch checks kmem_cache_create() error and aborts loading module
on failure.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Diffstat (limited to 'net/bridge/br.c')
-rw-r--r-- | net/bridge/br.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bridge/br.c b/net/bridge/br.c index 601c37d61c03..848b8fa8bedd 100644 --- a/net/bridge/br.c +++ b/net/bridge/br.c | |||
@@ -37,7 +37,9 @@ static int __init br_init(void) | |||
37 | return -EADDRINUSE; | 37 | return -EADDRINUSE; |
38 | } | 38 | } |
39 | 39 | ||
40 | br_fdb_init(); | 40 | err = br_fdb_init(); |
41 | if (err) | ||
42 | goto err_out1; | ||
41 | 43 | ||
42 | err = br_netfilter_init(); | 44 | err = br_netfilter_init(); |
43 | if (err) | 45 | if (err) |