u-boot/fs
Alexander Dahl 573dae50f5 fs: ubifs: Set pointers to NULL after free
Global superblock pointer 'ubifs_sb' and volume pointer 'ubi' of type
struct ubi_volume_desc in private member sb->s_fs_info of type struct
ubifs_info, can be allocated and freed at runtime, and allocated and
freed again, depending which console or script commands are run.  In
some cases ubifs_sb is even tested to determine if the filesystem is
mounted.  Reset those pointers to NULL after free to clearly mark them
as not valid.  This avoids potential double free on invalid pointers.

(The ubifs_sb pointer was already reset, but that statement was moved
now to directly after the free() to make it easier to understand.)

Signed-off-by: Alexander Dahl <ada@thorsis.com>
2024-08-10 11:54:10 +02:00
..
btrfs fs: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
cbfs Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
cramfs Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
erofs fs/erofs: fix an overflow issue of unmapped extents 2024-06-14 12:59:06 -06:00
ext4 fs: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
fat Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
jffs2 fs: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
sandbox Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
squashfs fs/squashfs: enable LZ4 compression support 2023-11-16 18:53:09 -05:00
ubifs fs: ubifs: Set pointers to NULL after free 2024-08-10 11:54:10 +02:00
yaffs2 fs: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
zfs fs: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
fs.c fs: relax ext4_write_file() dependency 2024-06-07 16:20:27 -06:00
fs_internal.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Kconfig fs: drop reiserfs 2024-03-04 10:25:47 -05:00
Makefile fs: drop reiserfs 2024-03-04 10:25:47 -05:00
semihostingfs.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00