diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-04-07 11:57:07 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 07:28:51 +0200 |
commit | 87a596e0b8bc344bd6bfebe83b56d11fb79ee23a (patch) | |
tree | 4fecaa826829e73976319dea651152fe78fce0ff /net/bridge/br.c | |
parent | bridge: allow changing hardware address to any valid address (diff) | |
download | linux-87a596e0b8bc344bd6bfebe83b56d11fb79ee23a.tar.xz linux-87a596e0b8bc344bd6bfebe83b56d11fb79ee23a.zip |
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) return -EADDRINUSE; } - br_fdb_init(); + err = br_fdb_init(); + if (err) + goto err_out1; err = br_netfilter_init(); if (err) |