Skip to content

bna: Fix return value check for debugfs create APIs

Zhen Lei netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bna: Fix return value check for debugfs create APIsdrivers/net/ethernet/brocade/bna/bnad_debugfs.c+9 -57 replies
2/2bna: Remove field bnad_dentry_files[] in struct bnaddrivers/net/ethernet/brocade/bna/bnad.h drivers/net/ethernet/brocade/bna/bnad_debugfs.c+6 -170 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] bna: Fix return value check for debugfs create APIs

1. Fix the incorrect return value check for debugfs_create_dir() and debugfs_create_file(), which returns ERR_PTR(-ERROR) instead of NULL when it fails.
2. Remove field bnad_dentry_files[] in struct bnad. When a directory is deleted, files in the directory are automatically deleted. Therefore, there is need to record these files.

Zhen Lei (2):
bna: Fix return value check for debugfs create APIs
bna: Remove field bnad_dentry_files[] in struct bnad

 drivers/net/ethernet/brocade/bna/bnad.h       |  1 -
 .../net/ethernet/brocade/bna/bnad_debugfs.c   | 34 ++++++++-----------
 2 files changed, 14 insertions(+), 21 deletions(-)
Signature · 1 line
2.34.1