Message ID | 20190223053047.tiwcuvs6tcg2htie@gondor.apana.org.au (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Kalle Valo |
Headers | show |
Series | ila: Fix uninitialised return value in ila_xlat_nl_cmd_flush | expand |
From: Herbert Xu <herbert@gondor.apana.org.au> Date: Sat, 23 Feb 2019 13:30:47 +0800 > 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> Applied, thanks Herbert.
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) struct rhashtable_iter iter; struct ila_map *ila; spinlock_t *lock; - int ret; + int ret = 0; rhashtable_walk_enter(&ilan->xlat.rhash_table, &iter); rhashtable_walk_start(&iter);