Skip to content

check return value of rhashtable_init in mlx5e, ipv6, mac80211

MichelleJin linux-rdma linux-wireless netdev 5 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesApplied 3/3
  2. v3 posting 2/23 patches 2 repliesSuperseded
  3. v3 posting 1/23 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch1 replySuperseded
v11 patch1 replySuperseded

Changes in v4 from the cover letter

- fix newly created warnings due to patches in net/ipv6/seg6.c

Patches in v4 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net/mlx5e: check return value of rhashtable_initdrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c+11 -31 replyApplied
2/3net: ipv6: check return value of rhashtable_initnet/ipv6/ila/ila_xlat.c net/ipv6/seg6.c net/ipv6/seg6_hmac.c+12 -61 replyApplied
3/3net: mac80211: check return value of rhashtable_initnet/mac80211/mesh_pathtbl.c+4 -10 repliesApplied

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchDavid AhernRoi Dayan
1/3R-b
2/3R-b
3/3

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

Read the v4 thread

Cover letter [PATCH net-next v4 0/3] check return value of rhashtable_init in mlx5e, ipv6, mac80211

When rhashtable_init() fails, it returns -EINVAL. However, since error return value of rhashtable_init is not checked, it can cause use of uninitialized pointers.
So, fix unhandled errors of rhashtable_init.
The three patches are essentially the same logic.

v1->v2:
- change commit message
- fix possible memory leaks
v2->v3:
- split patch into mlx5e, ipv6, mac80211
v3->v4:
- fix newly created warnings due to patches in net/ipv6/seg6.c

MichelleJin (3):
net/mlx5e: check return value of rhashtable_init
net: ipv6: check return value of rhashtable_init
net: mac80211: check return value of rhashtable_init

 drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 14 +++++++++++---
 net/ipv6/ila/ila_xlat.c                            |  6 +++++-
 net/ipv6/seg6.c                                    |  8 ++++++--
 net/ipv6/seg6_hmac.c                               |  4 +---
 net/mac80211/mesh_pathtbl.c                        |  5 ++++-
 5 files changed, 27 insertions(+), 10 deletions(-)
Signature · 1 line
2.25.1