linux/fs/bcachefs
Hongbo Li dc5bfdf8ea bcachefs: fix the memory leak in exception case
The pointer clean points the memory allocated by kmemdup, when the
return value of bch2_sb_clean_validate_late is not zero. The memory
pointed by clean is leaked. So we should free it in this case.

Fixes: a37ad1a3aba9 ("bcachefs: sb-clean.c")
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-09-27 21:46:34 -04:00
..
2024-08-08 15:14:02 -04:00
2024-03-13 21:22:26 -04:00
2024-09-09 09:41:49 -04:00
2024-07-14 19:00:15 -04:00
2024-03-13 18:39:12 -04:00
2024-01-21 13:27:10 -05:00
2024-09-21 11:39:48 -04:00
2024-09-21 11:39:48 -04:00
2024-09-21 11:39:49 -04:00
2024-01-21 13:27:11 -05:00
2024-03-13 18:39:12 -04:00
2024-07-14 19:00:12 -04:00
2024-09-21 11:39:48 -04:00
2024-01-21 13:27:10 -05:00
2024-09-09 09:41:48 -04:00
2024-07-14 19:00:16 -04:00
2024-09-09 09:41:47 -04:00
2024-09-21 11:39:48 -04:00
2024-09-21 11:39:48 -04:00
2024-01-21 13:27:10 -05:00
2024-01-21 13:27:11 -05:00
2024-05-08 17:29:19 -04:00
2024-09-21 11:39:48 -04:00
2024-06-23 00:57:21 -04:00
2024-01-01 11:47:40 -05:00
2024-01-21 13:27:10 -05:00
2024-05-08 17:29:19 -04:00
2024-09-21 11:39:48 -04:00
2024-09-09 09:41:49 -04:00
2024-09-09 09:41:49 -04:00
2024-09-09 09:41:48 -04:00