[PATCH 5.4 426/462] cgroup: Fix potential overflow issue when checking max_depth