summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-06-04 15:21:00 +0900
committerJens Axboe <axboe@kernel.dk>2012-06-04 10:03:21 +0200
commit9b2ea86bc9e940950a088e9795ab28f006e73276 (patch)
tree8bb42b9a25bd723fe838cc6a4fa3b077a02e50b4 /net/ipv4
parentffea73fc723a12fdde4c9fb3fcce5d154d1104a1 (diff)
downloadop-kernel-dev-9b2ea86bc9e940950a088e9795ab28f006e73276.zip
op-kernel-dev-9b2ea86bc9e940950a088e9795ab28f006e73276.tar.gz
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 <tj@kernel.org> Acked-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud