Re: [bug report] selftests: cgroup: add memory controller self-tests

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

 



On Tue, Jun 26, 2018 at 12:03:48PM +0300, Dan Carpenter wrote:
> Hello Roman Gushchin,
> 
> The patch 84092dbcf901: "selftests: cgroup: add memory controller
> self-tests" from May 11, 2018, leads to the following static checker
> warning:
> 
> 	./tools/testing/selftests/cgroup/test_memcontrol.c:76 test_memcg_subtree_control()
> 	error: uninitialized symbol 'child2'.
> 
> ./tools/testing/selftests/cgroup/test_memcontrol.c
>     69  
>     70  cleanup:
>     71          cg_destroy(child);
>     72          cg_destroy(parent);
>     73          free(parent);
>     74          free(child);
>     75  
>     76          cg_destroy(child2);
> 
> The problem with using one error label to handle all possible returns
> is that some stuff hasn't been initialized yet.
> 
>     77          cg_destroy(parent2);
>     78          free(parent2);
>     79          free(child2);
>     80  
>     81          return ret;
>     82  }

Hello, Dan!

Thanks for the report!
Just sent the fix.

Thanks,
Roman
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux