commit | d3a95ccaaf4df94743a958c90ab85f4703e3a687 | [log] [tgz] |
---|---|---|
author | Guoqing Jiang <guoqing.jiang@cloud.ionos.com> | Thu Nov 26 11:47:22 2020 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Dec 04 09:41:10 2020 -0700 |
tree | 27546f078a969af51fa659df840c95acad9c5485 | |
parent | 765c5c56ffde0a555ce69559ab275395fb1a12a9 [diff] |
block/rnbd: call kobject_put in the failure path Per the comment of kobject_init_and_add, we need to cleanup the memory by call kobject_put. Also we need to call kobject_del for the other failure cases if the kobject_init_and_add doesn't fail. Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com> Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com> Reviewed-by: Md Haris Iqbal <haris.iqbal@cloud.ionos.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>