u-boot/fs/ext4
Andrew Goodbody 2d6221262e fs: ext4fs: Perform NULL check before dereference
In the function put_ext4 there is a NULL check for fs->dev_desc but this
has already been derefenced twice before this happens. Refactor the code
a bit to put the NULL check first.

This issue found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
2025-07-11 10:44:29 -06:00
..
dev.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
ext4_common.c fs: ext4fs: Perform NULL check before dereference 2025-07-11 10:44:29 -06:00
ext4_common.h ext4: Fix zalloc() 2024-08-15 16:14:36 -06:00
ext4_journal.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
ext4_journal.h ext4: add support for filesystems without JOURNAL 2019-07-18 11:31:24 -04:00
ext4_write.c fs: ext4fs: Use unwind goto to free memory on error 2025-07-11 10:44:29 -06:00
ext4fs.c fs: ext4fs: Do not negate error before returning it 2025-07-11 10:44:29 -06:00
Kconfig EXT4: add CRC16 dependency 2025-05-23 08:01:15 -06:00
Makefile fs: ext4: Use CRC-16 implementation from linux/crc16.h 2022-04-21 14:32:40 -04:00