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: 13a5703d853f ("cgroups: don't change a freezer state if an operation failed")

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

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