Skip to content

RFC Fix nits found by static analysis

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6NFSD: Remove dead code in nfsd4_create_session()fs/nfsd/nfs4state.c+0 -30 replies
2/6NFSD: Remove a never-true comparisonfs/nfsd/nfsfh.c+1 -10 replies
3/6NFSD: Prevent NULL dereference in nfsd4_process_cb_update()fs/nfsd/nfs4callback.c+2 -00 replies
4/6NFSD: Remove unused results in nfsd4_encode_pathname4()fs/nfsd/nfs4xdr.c+5 -110 replies
5/6NFSD: Remove unused values from nfsd4_encode_components_esc()fs/nfsd/nfs4xdr.c+2 -50 replies
6/6NFSD: Cap the number of bytes copied by nfs4_reset_recoverydir()fs/nfsd/nfs4recover.c+2 -10 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJeff Layton
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

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

Read the v1 thread

Cover letter [RFC PATCH 0/6] Fix nits found by static analysis

From: Chuck Lever <[email protected]>

Here are a handful of fixes for issues found by static analysis. These are the ones I understood enough to address immediately. There are others that will take some time to analyze and address.

Chuck Lever (6):
NFSD: Remove dead code in nfsd4_create_session()
NFSD: Remove a never-true comparison
NFSD: Prevent NULL dereference in nfsd4_process_cb_update()
NFSD: Remove unused results in nfsd4_encode_pathname4()
NFSD: Remove unused values from nfsd4_encode_components_esc()
NFSD: Cap the number of bytes copied by nfs4_reset_recoverydir()

 fs/nfsd/nfs4callback.c |  2 ++
 fs/nfsd/nfs4recover.c  |  3 ++-
 fs/nfsd/nfs4state.c    |  3 ---
 fs/nfsd/nfs4xdr.c      | 23 +++++++----------------
 fs/nfsd/nfsfh.c        |  2 +-
 5 files changed, 12 insertions(+), 21 deletions(-)
Signature · 1 line
2.46.2