commit | 4c18c9e962eb02e23731e5b40d4474fb04fdcb23 | [log] [tgz] |
---|---|---|
author | weiping zhang <zhangweiping@didichuxing.com> | Fri Aug 25 23:49:32 2017 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Aug 25 13:51:07 2017 -0600 |
tree | 2428fbbf84cf04811edcbf3baebc127711b45d20 | |
parent | 231b3db18d4be74e8b199916911c2c16db1790de [diff] |
blkcg: avoid free blkcg_root when failed to alloc blkcg policy this patch fix two errors, firstly avoid kfree blk_root, secondly not free(blkcg) ,if blkcg alloc fail(blkcg == NULL), just unlock that mutex; Signed-off-by: weiping zhang <zhangweiping@didichuxing.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>