commit | 7e4e3c3ae23f0f252eae79bb0866ff2a0e10c0ba | [log] [tgz] |
---|---|---|
author | Hou Tao <houtao1@huawei.com> | Fri Feb 03 17:19:07 2017 +0800 |
committer | Todd Kjos <tkjos@google.com> | Thu May 31 15:15:31 2018 -0700 |
tree | f6279a258e29982a5e01ca222bb9a028cf14a01e | |
parent | c8579e811e2769d256fefdbdb9c91a1be1a8ead4 [diff] |
blkcg: fix double free of new_blkg in blkcg_init_queue commit 9b54d816e00425c3a517514e0d677bb3cec49258 upstream. 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> Cc: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>