libcontainer: Check for failed cgroup creation

If cgroup creation fails, abort container initialization, destroy any
part of the container that has been created.

BUG=none
TEST=none, only happens if we arre OOM

Change-Id: Ic21925972042b142e1bc57a50a639aea7a9debe3
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/344756
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
1 file changed