forked from luck/tmp_suning_uos_patched
rhashtable: Fix use before NULL check in bucket_table_free
Dan Carpenter reported a use before NULL check bug in the function bucket_table_free. In fact we don't need the NULL check at all as no caller can provide a NULL argument. So this patch fixes this by simply removing it. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
37f1c63e3e
commit
ca435407ba
@ -146,9 +146,7 @@ static void bucket_table_free(const struct bucket_table *tbl)
|
||||
if (tbl->nest)
|
||||
nested_bucket_table_free(tbl);
|
||||
|
||||
if (tbl)
|
||||
kvfree(tbl->locks);
|
||||
|
||||
kvfree(tbl->locks);
|
||||
kvfree(tbl);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user