Re: [PATCH 4/4] test_kmod: Avoid potential double free in trigger_config_run_type()

From: Luis Chamberlain
Date: Sat Apr 18 2020 - 01:47:52 EST


On Sat, Apr 18, 2020 at 01:20:00PM +0800, Tiezhu Yang wrote:
> It should set config->test_fs instead of config->test_driver as NULL
> after kfree_const(config->test_fs) to avoid potential double free.
>
> Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>

Acked-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>

Luis