提交 1373cc31 编写于 作者: S Sukadev Bhattiprolu 提交者: Michael Ellerman

powerpc/powernv/vas: Fix order of cleanup in vas_window_init_dbgdir()

Fix the order of cleanup to ensure we free the name buffer in case
of an error creating 'hvwc' or 'info' files.
Signed-off-by: NSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 2f65272a
......@@ -166,13 +166,13 @@ void vas_window_init_dbgdir(struct vas_window *window)
return;
free_name:
kfree(window->dbgname);
window->dbgname = NULL;
remove_dir:
debugfs_remove_recursive(window->dbgdir);
window->dbgdir = NULL;
free_name:
kfree(window->dbgname);
window->dbgname = NULL;
}
void vas_instance_init_dbgdir(struct vas_instance *vinst)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册