linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v4 0/3] check return value of rhashtable_init in mlx5e, ipv6, mac80211
@ 2021-09-27  3:34 MichelleJin
  2021-09-27  3:34 ` [PATCH net-next v4 1/3] net/mlx5e: check return value of rhashtable_init MichelleJin
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: MichelleJin @ 2021-09-27  3:34 UTC (permalink / raw)
  To: davem, kuba, yoshfuji, dsahern, johannes
  Cc: saeedm, leon, roid, paulb, ozsh, lariel, cmi, netdev, linux-rdma,
	linux-wireless

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(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-29 11:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-27  3:34 [PATCH net-next v4 0/3] check return value of rhashtable_init in mlx5e, ipv6, mac80211 MichelleJin
2021-09-27  3:34 ` [PATCH net-next v4 1/3] net/mlx5e: check return value of rhashtable_init MichelleJin
2021-09-29 11:00   ` Roi Dayan
2021-09-27  3:34 ` [PATCH net-next v4 2/3] net: ipv6: " MichelleJin
2021-09-27 13:43   ` David Ahern
2021-09-27  3:34 ` [PATCH net-next v4 3/3] net: mac80211: " MichelleJin
2021-09-28 12:10 ` [PATCH net-next v4 0/3] check return value of rhashtable_init in mlx5e, ipv6, mac80211 patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).