In the Linux kernel, the following vulnerability has been resolved: btrfs: fix anondev leak in createsubvol() When btrfsqgroupinherit(), btrfsalloctreeblock, or btrfsinsertroot() fail in createsubvol(), we return without freeing anondev. Reorganize the error handling in createsubvol() to fix this.