commit | ddccf6cd2f519c46a6286a43ceaf680eb367301c | [log] [tgz] |
---|---|---|
author | Xiaoming Ni <nixiaoming@huawei.com> | Mon Dec 12 18:41:02 2022 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Mon Dec 12 18:57:09 2022 +0100 |
tree | ce53166de2e8bc5fa2a9459dbc0e99bc970d2634 | |
parent | 90456a6aa3a039ac1b16a09e64d13cc9589b55ee [diff] |
loop: refactor: extract subfunction get_next_free_loop() Extract subfunction get_next_free_loop() from set_loop() Also fix miss free(try) when stat(try) and mknod fail function old new delta set_loop 807 790 -17 Fixes: 3448914e8cc5 ("mount,losetup: use /dev/loop-control is it exists") Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>