From: Tejun Heo Date: Mon, 4 Jun 2012 06:21:00 +0000 (+0900) Subject: blkcg: fix blkg_alloc() failure path X-Git-Tag: v3.5-rc6~20^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b2ea86bc9e940950a088e9795ab28f006e73276;p=pandora-kernel.git blkcg: fix blkg_alloc() failure path When policy data allocation fails in the middle, blkg_alloc() invokes blkg_free() to destroy the half constructed blkg. This ends up calling pd_exit_fn() on policy datas which didn't go through pd_init_fn(). Fix it by making blkg_alloc() call pd_init_fn() immediately after each policy data allocation. Signed-off-by: Tejun Heo Acked-by: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed