]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/blk-cgroup.c
blkcg: fix double free of new_blkg in blkcg_init_queue
authorHou Tao <houtao1@huawei.com>
Fri, 3 Feb 2017 09:19:07 +0000 (17:19 +0800)
committerJens Axboe <axboe@fb.com>
Fri, 3 Feb 2017 14:52:35 +0000 (07:52 -0700)
commit9b54d816e00425c3a517514e0d677bb3cec49258
tree4316604c3430ab596be3b6e6a120de23a384a541
parent0cacba6cf8252438f8166bd3fa1c3370dd28a769
blkcg: fix double free of new_blkg in blkcg_init_queue

If blkg_create fails, new_blkg passed as an argument will
be freed by blkg_create, so there is no need to free it again.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-cgroup.c