block: brd/loop error-path cleanup
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | block: brd: destroy xa on allocation failuredrivers/ | +1 | 0 replies | |
| 2/2 | block: loop: restore state on loop_configure() errordrivers/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH v1 0/2] block: brd/loop error-path cleanup
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(+)
Signature · 1 line
2.43.0