cgroups: set a freezer state before calling FreezerGroup.Set()
cgroups: set a freezer state before calling FreezerGroup.Set()

My previous patch moved the setting of the freezer state after the Set()
command. It's wrong, because this command uses it, so we need to set the
freezer state before the command and rollback it in an error case.

Fixes: 13a5703 ("cgroups: don't change a freezer state if an operation failed")

Signed-off-by: Andrey Vagin <74c05afa918858348d6db8037d82fa8124870113@openvz.org>

whuwxl/libcontainer,zhangyancoder/libcontainer,rsampaio/runc,clnperez/runc,shishir-a412ed/runc,stefanberger/runc,adrianreber/runc,axsh/runc,carlye566/runc,tangkun75/libcontainer,shenxiaochen/libcontainer,whosthatknocking/runc,navidshaikh/runc,opencontainers/runc,abduld/runc,rhatdan/libcontainer,albertoleal/runc,clnperez/runc,mapk0y/runc,vbatts/runc,LTD-Beget/libcontainer,crosbymichael/runc,kimh/runc,jhowardmsft/runc,shishir-a412ed/runc,thaJeztah/libcontainer,willmtemple/runc,axsh/runc,hxfeng/runc,docker/libcontainer,booyaa/runc,adrianreber/runc,inatatsu/runc,estesp/libcontainer,maxamillion/runc,gitido/runc,calavera/runc,wcwxyz/runc,inatatsu/runc,HuKeping/runc,mikebrow/runc,mheon/runc,Mashimiao/libcontainer,hqhq/libcontainer,ddnbgroup/runc,boucher/runc,hqhq/runc,cyphar/runc,SaiedKazemi/libcontainer-criu,mheon/runc,rhatdan/libcontainer,abduld/runc,booyaa/runc,subuser-security/runc,zenlinTechnofreak/runc,estesp/runc,haijunTan/runc,crosbymichael/runc,han-wang/runc,chenchun/runc,intfrr/runc,ZJU-SEL/libcontainer,ChengTiesheng/runc,ZJU-SEL/libcontainer,talwai/runc,rhatdan/runc,jhowardmsft/runc,rhatdan/runc,subuser-security/runc,BrickXu/libcontainer,zhangyancoder/libcontainer,cxxly/runc,opencontainers/runc,boucher/runc,mapk0y/runc,boucher/libcontainer,keloyang/libcontainer,LK4D4/runc,lizf-os/runc,wangkirin/runc,gwoo/runc,runcom/libcontainer,calavera/runc,sallyom/runc,marcosnils/runc,ycaihua/runc,rsampaio/runc,xiaochenshen/runc,talwai/runc,estesp/runc,ekuric/runc,InformatiQ/runc,navidshaikh/runc,runcom/runc,hqhq/runc,meihuabo/runc,dqminh/libcontainer,mikebrow/runc,coolljt0725/runc,estesp/runc,intfrr/runc,docker/runc,vbatts/runc,ZJU-SEL/runc,mrunalp/runc,hxfeng/runc,HuKeping/runc,rhatdan/libcontainer,balajibr/runc,liuwharton/runc,haijunTan/runc,albertoleal/runc,BrickXu/libcontainer,laijs/runc,sunyuan3/runc,aidanhs/runc,shenxiaochen/libcontainer,ycaihua/libcontainer,willmtemple/runc,fabiokung/runc,thaJeztah/libcontainer,chenchun/runc,mheon/libcontainer,rajasec/runc,hxfeng/runc,dqminh/runc,kimh/runc,haijunTan/runc,ddnbgroup/runc,aidanhs/runc,jhjeong-kr/runc,dieface/runc,cyphar/runc,dqminh/runc,laijs/runc,LTD-Beget/libcontainer,ycaihua/runc,WeiZhang555/runc,mrunalp/runc,ycaihua/libcontainer,mheon/runc,coolljt0725/runc,dieface/runc,rootfs/runc,markllama/runc,ddnbgroup/runc,YujiOshima/runc,intfrr/runc,whuwxl/libcontainer,ZJU-SEL/runc,mheon/libcontainer,laijs/runc,marcosnils/runc,meihuabo/runc,runcom/libcontainer,sunyuan3/runc,docker/runc,adrianreber/runc,HuKeping/runc,xiaochenshen/runc,jhjeong-kr/runc,nkwilson/runc,calavera/runc,axsh/runc,ekuric/runc,SaiedKazemi/libcontainer-criu,cxxly/runc,zhangyancoder/libcontainer,subuser-security/runc,Microsoft/libcontainer,ZJU-SEL/runc,kimh/runc,carlye566/runc,jwuwork/runc,YujiOshima/runc,maxamillion/runc,mrunalp/runc,fabiokung/runc,navidshaikh/runc,abduld/runc,w4ngyi/libcontainer,docker/libcontainer,Microsoft/libcontainer,dqminh/runc,liuwharton/runc,whosthatknocking/runc,mYmNeo/runc,inatatsu/runc,LK4D4/runc,WeiZhang555/runc,dqminh/libcontainer,rajasec/runc,runcom/runc,chenchun/runc,shishir-a412ed/runc,booyaa/runc,hqhq/libcontainer,kolyshkin/runc,HardikDR/runc,sallyom/runc,whosthatknocking/runc,marcosnils/runc,kolyshkin/runc,willmtemple/runc,justincormack/runc,rsampaio/runc,boucher/runc,jhjeong-kr/runc,markllama/runc,han-wang/runc,keloyang/libcontainer,justincormack/runc,balajibr/runc,thaJeztah/libcontainer,keloyang/runc,boucher/libcontainer,carlye566/runc,avagin/runc,keloyang/libcontainer,BrickXu/libcontainer,nkwilson/runc,zenlinTechnofreak/runc,kolyshkin/runc,tangkun75/libcontainer,wcwxyz/runc,WeiZhang555/runc,cloudfoundry-incubator/runc,estesp/libcontainer,shenxiaochen/libcontainer,clnperez/runc,docker/runc,cyphar/runc,dqminh/libcontainer,sallyom/runc,stefanberger/runc,keloyang/runc,estesp/libcontainer,cloudfoundry-incubator/runc,albertoleal/runc,mheon/libcontainer,ChengTiesheng/runc,LK4D4/runc,opencontainers/runc,jhowardmsft/runc,han-wang/runc,HardikDR/runc,jwuwork/runc,YujiOshima/runc,rootfs/runc,hqhq/libcontainer,avagin/runc,ChengTiesheng/runc,rajasec/runc,dqminh/runc,LTD-Beget/libcontainer,HardikDR/runc,liuwharton/runc,ZJU-SEL/libcontainer,gitido/runc,dieface/runc,Mashimiao/libcontainer,whuwxl/libcontainer,nkwilson/runc,keloyang/runc,wcwxyz/runc,InformatiQ/runc,vbatts/runc,avagin/runc,meihuabo/runc,ekuric/runc,wking/runc,wking/runc,opencontainers/runc,InformatiQ/runc,ycaihua/libcontainer,lizf-os/runc,mikebrow/runc,cloudfoundry-incubator/runc,rootfs/runc,rhatdan/runc,SaiedKazemi/libcontainer-criu,crosbymichael/libcontainer,aidanhs/runc,coolljt0725/runc,tangkun75/libcontainer,zenlinTechnofreak/runc,crosbymichael/libcontainer,cxxly/runc,keloyang/libcontainer,runcom/libcontainer,kolyshkin/runc,Mashimiao/libcontainer,w4ngyi/libcontainer,xiaochenshen/runc,boucher/libcontainer,fabiokung/runc,jwuwork/runc,ycaihua/runc,sunyuan3/runc,crosbymichael/runc,gitido/runc,mapk0y/runc,wking/runc,wangkirin/runc,crosbymichael/libcontainer,justincormack/runc,w4ngyi/libcontainer,rhatdan/runc,stefanberger/runc,Microsoft/libcontainer,balajibr/runc,runcom/runc,docker/libcontainer,wangkirin/runc,hqhq/runc,maxamillion/runc,lizf-os/runc,talwai/runc,mYmNeo/runc,markllama/runc,mYmNeo/runc