Files
u-boot/fs
Dan Carpenter c331efd087 fs: btrfs: Prevent error pointer dereference in list_subvolums()
If btrfs_read_fs_root() fails with -ENOENT, then we go to the next
entry.  Fine.  But if it fails for a different reason then we need
to clean up and return an error code.  In the current code it
doesn't clean up but instead dereferences "root" and crashes.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Qu Wenruo <wqu@suse.com>
2023-08-08 17:05:43 -04:00
..
2023-08-03 15:30:53 -04:00
2023-06-06 10:37:25 +02:00
2020-05-18 21:19:18 -04:00
2022-04-25 10:00:04 -04:00
2022-04-01 15:03:13 -04:00