Skip to content

Fix scan-build warnings

Dominique Martinet lkml netdev v9fs 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20230427-scan-build-d894c16fc945

Versions newest first

  1. v2 Latest5 patches 3 repliesApplied
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Add Fixes tag to first patch (wasn't the one suggested but a very
recent commit, still in -next)
- Fix typo in commit messages
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/59p: fix ignored return value in v9fs_dir_releasefs/9p/vfs_dir.c+3 -20 replies
2/59p: virtio: fix unlikely null pointer deref in handle_rerrornet/9p/trans_virtio.c+1 -10 replies
3/59p: virtio: make sure 'offs' is initialized in zc_requestnet/9p/trans_virtio.c+1 -10 replies
4/59p: virtio: skip incrementing unused variablenet/9p/trans_virtio.c+2 -20 replies
5/59p: remove dead stores (variable set again without being read)fs/9p/vfs_inode.c fs/9p/vfs_inode_dotl.c net/9p/client.c+12 -412 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSimon Horman
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] Fix scan-build warnings

I ran scan-build very crudly on our source files, and there was at least one real bug so we might as well run it once in a while, in which case we probably ought to also fix the less important things hence this series.
In here the first patch is a real fix and the rest is low priority, the last one is arguably not an improvement and can be discussed (happy to just move the 0-initializations around to variable declaration which would also silence scan-build afaict)

Anyway, it can probably all wait until after this merge, sorry for the timing.

---
Changes in v2:
- Add Fixes tag to first patch (wasn't the one suggested but a very
recent commit, still in -next)
- Fix typo in commit messages
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Dominique Martinet (5):
9p: fix ignored return value in v9fs_dir_release 9p: virtio: fix unlikely null pointer deref in handle_rerror 9p: virtio: make sure 'offs' is initialized in zc_request 9p: virtio: skip incrementing unused variable
9p: remove dead stores (variable set again without being read)

 fs/9p/vfs_dir.c        |  5 +++--
 fs/9p/vfs_inode.c      |  6 ------
 fs/9p/vfs_inode_dotl.c |  1 -
 net/9p/client.c        | 46 ++++++++++++----------------------------------
 net/9p/trans_virtio.c  |  8 ++++----
 5 files changed, 19 insertions(+), 47 deletions(-)

---
base-commit: 21e26d5e54ab7cfe6b488fd27d4d70956d07e03b
change-id: 20230427-scan-build-d894c16fc945

Best regards,

Signature · 1 line
Dominique Martinet | Asmadeus