blkcg: fix blkcg->css ref leak in __blkg_lookup_create()
authorTejun Heo <tj@kernel.org>
Thu, 19 Apr 2012 23:29:23 +0000 (16:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Apr 2012 08:06:40 +0000 (10:06 +0200)
commit496fb7806d616185a46865a4f3a20ef19dc6c7e3
treea200e6825be55f6d0ed411ec32dc16244f488fd9
parentaaf7c680682f1999ef2e574f743c45d1674a8b8a
blkcg: fix blkcg->css ref leak in __blkg_lookup_create()

__blkg_lookup_create() leaked blkcg->css ref if blkg allocation
failed.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c