diff options
author | Guoqing Jiang <[email protected]> | 2020-11-26 11:47:22 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-12-04 09:41:10 -0700 |
commit | d3a95ccaaf4df94743a958c90ab85f4703e3a687 (patch) | |
tree | 27546f078a969af51fa659df840c95acad9c5485 /net/lapb/lapb_subr.c | |
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 <[email protected]>
Signed-off-by: Jack Wang <[email protected]>
Reviewed-by: Md Haris Iqbal <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions