Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d26ce88 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "blkcg: fix double free of new_blkg in blkcg_init_queue"

parents 84eae59b 4905894d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1078,10 +1078,8 @@ int blkcg_init_queue(struct request_queue *q)
	if (preloaded)
		radix_tree_preload_end();

	if (IS_ERR(blkg)) {
		blkg_free(new_blkg);
	if (IS_ERR(blkg))
		return PTR_ERR(blkg);
	}

	q->root_blkg = blkg;
	q->root_rl.blkg = blkg;