[PATCH v1 0/2] block: brd/loop error-path cleanup
From: Iván Ezequiel Rodriguez
Date: Mon Aug 31 2026 - 14:12:30 EST
Hi,
Two small error-path cleanups in brd and loop.
Patch 1 destroys the brd xarray on allocation failure after xa_init().
Patch 2 restores backing-file GFP mask, clears lo_backing_file /
lo_device, and re-enables uevents when loop_configure() fails after
loop_assign_backing_file().
Base: v7.3-rc1
Tested: built bzImage with CONFIG_BLK_DEV_RAM=y and CONFIG_BLK_DEV_LOOP=y;
booted QEMU initramfs smoke (ram0 present + LOOP_CONFIGURE happy path).
Thanks,
Iván
Iván Ezequiel Rodriguez (2):
block: brd: destroy xa on allocation failure
block: loop: restore state on loop_configure() error
drivers/block/brd.c | 1 +
drivers/block/loop.c | 7 +++++++
2 files changed, 8 insertions(+)
--
2.43.0