diff options
author | Vladyslav Tarasiuk <vladyslavt@mellanox.com> | 2019-12-26 10:41:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-26 11:48:39 -0800 |
commit | a5bcd72e054aabb93ddc51ed8cde36a5bfc50271 (patch) | |
tree | a819f759d001be6807ccbd3e50622ab1aa77c3fb /net/bridge | |
parent | 095e90e080a502e8737b8694c15f03f16d4df6ab (diff) | |
download | linux-stable-a5bcd72e054aabb93ddc51ed8cde36a5bfc50271.tar.gz linux-stable-a5bcd72e054aabb93ddc51ed8cde36a5bfc50271.tar.bz2 linux-stable-a5bcd72e054aabb93ddc51ed8cde36a5bfc50271.zip |
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: 410ed13cae39 ("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>
Diffstat (limited to 'net/bridge')
0 files changed, 0 insertions, 0 deletions