1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox/mlxfw
Vladyslav Tarasiuk 6c75efb9e5 net/mlxfw: Fix out-of-memory error in mfa2 flash burning
[ Upstream commit a5bcd72e05 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-04 19:18:44 +01: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.h mlxfw: Introduce status_notify op and call it to notify about the status 2019-06-04 14:21:40 -07: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.c net/mlxfw: Fix out-of-memory error in mfa2 flash burning 2020-01-04 19:18:44 +01:00
mlxfw_mfa2.h mlxfw: Replace license text with SPDX identifiers and adjust copyrights 2019-01-24 22:34:03 -08:00
mlxfw_mfa2_file.h mlxfw: Replace license text with SPDX identifiers and adjust copyrights 2019-01-24 22:34:03 -08:00
mlxfw_mfa2_format.h mlxfw: Replace license text with SPDX identifiers and adjust copyrights 2019-01-24 22:34:03 -08:00
mlxfw_mfa2_tlv.h mlxfw: Replace license text with SPDX identifiers and adjust copyrights 2019-01-24 22:34:03 -08:00
mlxfw_mfa2_tlv_multi.c mlxfw: Replace license text with SPDX identifiers and adjust copyrights 2019-01-24 22:34:03 -08:00
mlxfw_mfa2_tlv_multi.h mlxfw: Replace license text with SPDX identifiers and adjust copyrights 2019-01-24 22:34:03 -08:00