|
@@ -1051,8 +1051,10 @@ struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af,
|
|
|
list_for_each_entry(t, &init_net.xt.tables[af], list) {
|
|
|
if (strcmp(t->name, name))
|
|
|
continue;
|
|
|
- if (!try_module_get(t->me))
|
|
|
+ if (!try_module_get(t->me)) {
|
|
|
+ mutex_unlock(&xt[af].mutex);
|
|
|
return NULL;
|
|
|
+ }
|
|
|
|
|
|
mutex_unlock(&xt[af].mutex);
|
|
|
if (t->table_init(net) != 0) {
|