Skip to content

block: brd/loop error-path cleanup

Iván Ezequiel Rodriguez linux-block lkml syzbot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: brd: destroy xa on allocation failuredrivers/block/brd.c+1 -00 replies
2/2block: loop: restore state on loop_configure() errordrivers/block/loop.c+7 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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