net/mlx5e: Fix a couple error codes
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Oct 2022 14:37:29 +0000 (17:37 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 24 Nov 2022 08:03:21 +0000 (00:03 -0800)
commitbc59c7d326d28a12f61cd068e459235a7a0bd009
treed32e7306cb55fc8405081e8ae2304c27d1a58006
parent52c795af04441d76f565c4634f893e5b553df2ae
net/mlx5e: Fix a couple error codes

If kvzalloc() fails then return -ENOMEM.  Don't return success.

Fixes: 3b20949cb21b ("net/mlx5e: Add MACsec RX steering rules")
Fixes: e467b283ffd5 ("net/mlx5e: Add MACsec TX steering rules")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec_fs.c