linux_dsm_epyc7002/drivers/net/ethernet/mellanox/mlxfw
Vladyslav Tarasiuk a5bcd72e05 net/mlxfw: Fix out-of-memory error in mfa2 flash burning
The burning process requires to perform internal allocations of large
chunks of memory. This memory doesn't need to be contiguous and can be
safely allocated by vzalloc() instead of kzalloc(). This patch changes
such allocation to avoid possible out-of-memory failure.

Fixes: 410ed13cae ("Add the mlxfw module for Mellanox firmware flash process")
Signed-off-by: Vladyslav Tarasiuk <vladyslavt@mellanox.com>
Reviewed-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Tested-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-12-26 11:48:39 -08:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mlxfw_fsm.c net/mlxfw: Verify FSM error code translation doesn't exceed array size 2019-11-20 12:33:06 -08:00
mlxfw_mfa2_file.h
mlxfw_mfa2_format.h
mlxfw_mfa2_tlv_multi.c
mlxfw_mfa2_tlv_multi.h
mlxfw_mfa2_tlv.h
mlxfw_mfa2.c net/mlxfw: Fix out-of-memory error in mfa2 flash burning 2019-12-26 11:48:39 -08:00
mlxfw_mfa2.h
mlxfw.h mlxfw: Introduce status_notify op and call it to notify about the status 2019-06-04 14:21:40 -07:00