[bug report] rhashtable: Add nested tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Herbert Xu,

This is a semi-automatic email about new static checker warnings.

The patch 40137906c5f5: "rhashtable: Add nested tables" from Feb 11, 
2017, leads to the following Smatch complaint:

lib/rhashtable.c:149 bucket_table_free()
	 warn: variable dereferenced before check 'tbl' (see line 146)

lib/rhashtable.c
   145	{
   146		if (tbl->nest)
                    ^^^^^^^^^
New unchecked dereference.

   147			nested_bucket_table_free(tbl);
   148	
   149		if (tbl)
                    ^^^
Old code checked for NULL.

   150			kvfree(tbl->locks);
   151	

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux