Xose has kindly informed me about the warnings from Fedora's static code analysis tool. I'm sending a couple of related fixes here. In the cover letter of v1 of this series [1], I'd included a discussion of what I considered false positives, but many of those might actually be real, as subsequent discussion with Ben Marzinski has revealed. So I'm not repeating this list here. Regards Martin Changes v1 -> v2: - Added links to specific anchors on the static analysis page in commit messages - 04/08: replaced this one after discussion with Ben - 07/08, 08/08: new minor cleanups. [1] https://lore.kernel.org/dm-devel/20250505163007.59352-1-mwilck@xxxxxxxx/ Martin Wilck (8): kpartx_id: fix shellcheck reported errors kpartx: fix file descriptor leak libmpathpersist: fix memory leak in mpath_prout_rel() libmpathutil: vector_del_slot: modify v->allocated if realloc fails libmultipath: fix undefined behavior in 31-bit shift libmultipath: prioritizers/iet: fix possible NULL dereference libmpathutil: remove vector_repack() libmpathutil: remove VECTOR_DEFAULT_SIZE macro kpartx/kpartx.c | 14 ++++++------- kpartx/kpartx_id | 8 ++++---- libmpathpersist/mpath_persist_int.c | 12 +++++------ libmpathutil/vector.c | 31 +++++++++++------------------ libmpathutil/vector.h | 4 +--- libmultipath/nvme/nvme-ioctl.c | 2 +- libmultipath/prioritizers/iet.c | 3 +++ 7 files changed, 34 insertions(+), 40 deletions(-) -- 2.49.0