commit | 0d76502172d83e1e09aedbdced3d8be0ef1abcb5 | [log] [tgz] |
---|---|---|
author | Baokun Li <libaokun1@huawei.com> | Mon Nov 15 09:31:43 2021 +0800 |
committer | Richard Weinberger <richard@nod.at> | Thu Dec 23 22:28:23 2021 +0100 |
tree | e02cb685339c7435445626520ecd116925833bfa | |
parent | 88618feecf44e774e03cf49872567398b0177d25 [diff] |
ubifs: fix double return leb in ubifs_garbage_collect If ubifs_garbage_collect_leb() returns -EAGAIN and enters the "out" branch, ubifs_return_leb will execute twice on the same lnum. This can cause data loss in concurrency situations. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Baokun Li <libaokun1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>