Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 74f412af authored by Tejun Heo's avatar Tejun Heo Committed by Greg Kroah-Hartman
Browse files

blkcg: fix gendisk reference leak in blkg_conf_prep()


commit 5f6c2d2b 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: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 15d6dd8f
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment