Re: [PATCH RESEND] blkcg: fix double free of new_blkg in blkcg_init_queue

2017-02-03 Thread Jens Axboe
On 02/03/2017 02:19 AM, Hou Tao wrote: > 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. Thanks, looks good to me. Applied. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-block" in the

[PATCH RESEND] blkcg: fix double free of new_blkg in blkcg_init_queue

2017-02-03 Thread Hou Tao
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 --- block/blk-cgroup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/block/blk-cgroup.c