multipath-tools: static analyzer fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest8 patches 3 repliesIn review
- v16 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- 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.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | kpartx_id: fix shellcheck reported errorskpartx/ | +4 | 0 replies | |
| 2/8 | kpartx: fix file descriptor leakkpartx/ | +7 | 0 replies | |
| 3/8 | libmpathpersist: fix memory leak in mpath_prout_rel()libmpathpersist/ | +6 | 0 replies | |
| 4/8 | libmpathutil: vector_del_slot: modify v->allocated if realloc failslibmpathutil/ | +10 | 1 reply | |
| 5/8 | libmultipath: fix undefined behavior in 31-bit shiftlibmultipath/ | +1 | 0 replies | |
| 6/8 | libmultipath: prioritizers/iet: fix possible NULL dereferencelibmultipath/ | +3 | 0 replies | |
| 7/8 | libmpathutil: remove vector_repack()libmpathutil/ libmpathutil/ | +0 | 1 reply | |
| 8/8 | libmpathutil: remove VECTOR_DEFAULT_SIZE macrolibmpathutil/ libmpathutil/ | +3 | 1 reply |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Benjamin Marzinski |
|---|---|
| 1/8 | R-b |
| 2/8 | R-b |
| 3/8 | R-b |
| 4/8 | R-b |
| 5/8 | R-b |
| 6/8 | R-b |
| 7/8 | R-b |
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/8] multipath-tools: static analyzer fixes
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/[email protected]/
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(-)
Signature · 1 line
2.49.0