In the Linux kernel, the following vulnerability has been resolved:
blk-cgroup: fix leaks and online flag on radix_tree_insert failure
When radix_tree_insert() fails in blkg_create(), the error path has two issues:
- blkg->online is set to true unconditionally, even when the blkg was
- The error path calls blkg_put() without first calling
Fix by replacing blkg_put() with percpu_ref_kill(), matching the pattern used in blkg_destroy().