diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 887d72a85b5e1af6fbc897503dfe72f8c4a21951..436bb53dd383f24380b11a44d6f3e39c42c39fbb 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -554,8 +554,10 @@ static int cgwb_create(struct backing_dev_info *bdi, goto err_ref_exit; wb->congested = wb_congested_get_create(bdi, blkcg_css->id, gfp); - if (!wb->congested) + if (!wb->congested) { + ret = -ENOMEM; goto err_fprop_exit; + } wb->memcg_css = memcg_css; wb->blkcg_css = blkcg_css;