[3/3,v2,RHEL7] ve: cleanup in function ve_get_release_agent_path

Submitted by Valeriy Vdovin on Oct. 29, 2020, 11 a.m.

Details

Message ID 1603969246-958334-4-git-send-email-valeriy.vdovin@virtuozzo.com
State New
Series "cgroup: do not use cgroup_mutex in cgroup_show_options"
Headers show

Commit Message

Valeriy Vdovin Oct. 29, 2020, 11 a.m.
Signed-off-by: Valeriy Vdovin <valeriy.vdovin@virtuozzo.com>
---
 kernel/ve/ve.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index f61b1fe..482d658 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -226,6 +226,7 @@  const char *ve_get_release_agent_path(struct cgroup *cgroot)
 	struct per_cgroot_data *data;
 	struct cgroup_rcu_string *str;
 	struct ve_struct *ve;
+
 	ve = rcu_dereference(cgroot->ve_owner);
 	if (!ve)
 		return NULL;

Comments

Kirill Tkhai Oct. 29, 2020, 11:12 a.m.
On 29.10.2020 14:00, Valeriy Vdovin wrote:
> Signed-off-by: Valeriy Vdovin <valeriy.vdovin@virtuozzo.com>

Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com>

> ---
>  kernel/ve/ve.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
> index f61b1fe..482d658 100644
> --- a/kernel/ve/ve.c
> +++ b/kernel/ve/ve.c
> @@ -226,6 +226,7 @@ const char *ve_get_release_agent_path(struct cgroup *cgroot)
>  	struct per_cgroot_data *data;
>  	struct cgroup_rcu_string *str;
>  	struct ve_struct *ve;
> +
>  	ve = rcu_dereference(cgroot->ve_owner);
>  	if (!ve)
>  		return NULL;
>