linux/block/blk-cgroup.c
Tejun Heo a8b279d9a8 blkcg: fix gendisk reference leak in blkg_conf_prep()
commit 5f6c2d2b7d upstream.

When a blkcg configuration is targeted to a partition rather than a
whole device, blkg_conf_prep fails with -EINVAL; unfortunately, it
forgets to put the gendisk ref in that case.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
2015-08-11 09:57:43 +01:00

1157 lines
30 KiB