Skip to content

Commit dd7d888

Browse files
rleonBrian Maly
authored andcommitted
net/mlx5e: Compare all fields in IPv6 address
Fix size argument in memcmp to compare whole IPv6 address. Fixes: b3beba1 ("net/mlx5e: Allow policies with reqid 0, to support IKE policy holes") Reviewed-by: Raed Salem <[email protected]> Reviewed-by: Emeel Hakim <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]> Orabug: 35383105 (cherry picked from commit 3198ae7) cherry-pick-repo=kernel/git/torvalds/linux.git unmodified-from-upstream: 3198ae7 Signed-off-by: Mikhael Goikhman <[email protected]> Signed-off-by: Qing Huang <[email protected]> Reviewed-by: Devesh Sharma <[email protected]> Signed-off-by: Brian Maly <[email protected]>
1 parent e833173 commit dd7d888

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en_accel

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static inline bool addr6_all_zero(__be32 *addr6)
287287
{
288288
static const __be32 zaddr6[4] = {};
289289

290-
return !memcmp(addr6, zaddr6, sizeof(*zaddr6));
290+
return !memcmp(addr6, zaddr6, sizeof(zaddr6));
291291
}
292292
#else
293293
static inline void mlx5e_ipsec_init(struct mlx5e_priv *priv)

0 commit comments

Comments
 (0)