diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2019-02-23 00:30:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-25 00:54:44 -0500 |
commit | 4ef595cbb3f871620083dcface7a7fb8f2152607 (patch) | |
tree | 2a9939abc7bac747d647e3be7e4d98cf7584438d | |
parent | 41411e2fd6b8dcc91dadcc4f9d553b93e66da3b5 (diff) |
ila: Fix uninitialised return value in ila_xlat_nl_cmd_flush
This patch fixes an uninitialised return value error in
ila_xlat_nl_cmd_flush.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 6c4128f65857 ("rhashtable: Remove obsolete...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/ila/ila_xlat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ila/ila_xlat.c b/net/ipv6/ila/ila_xlat.c index ae6cd4cef8db..79d2e43c05c5 100644 --- a/net/ipv6/ila/ila_xlat.c +++ b/net/ipv6/ila/ila_xlat.c | |||
@@ -383,7 +383,7 @@ int ila_xlat_nl_cmd_flush(struct sk_buff *skb, struct genl_info *info) | |||
383 | struct rhashtable_iter iter; | 383 | struct rhashtable_iter iter; |
384 | struct ila_map *ila; | 384 | struct ila_map *ila; |
385 | spinlock_t *lock; | 385 | spinlock_t *lock; |
386 | int ret; | 386 | int ret = 0; |
387 | 387 | ||
388 | rhashtable_walk_enter(&ilan->xlat.rhash_table, &iter); | 388 | rhashtable_walk_enter(&ilan->xlat.rhash_table, &iter); |
389 | rhashtable_walk_start(&iter); | 389 | rhashtable_walk_start(&iter); |