commit | 5857cd637bc0d60dc7e37af396b01324f199d89b | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Fri Jun 05 06:20:51 2015 +0900 |
committer | Jens Axboe <axboe@fb.com> | Thu Jun 04 15:21:43 2015 -0600 |
tree | 7bb918bb9eebec7a03250d5fa74fa5814d1a9a83 | |
parent | d2e73fcceb18570e82cf3f4725b9e4dbd6cb3c31 [diff] |
bdi: fix wrong error return value in cgwb_create() On wb_congested_get_create() failure, cgwb_create() forgot to set @ret to -ENOMEM ending up returning 0. Fix it so that it returns -ENOMEM. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jens Axboe <axboe@fb.com>