summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorVladyslav Tarasiuk <vladyslavt@mellanox.com>2019-12-26 10:41:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-04 19:13:33 +0100
commit6538eea79300eaaa8f517b6ed7a086913fd61afb (patch)
treeb60c58de2140164eb56ce2414e82a6afd767ca26 /include/linux
parent3990d6909f2f17b44ef43221bd30adffd9b8a5d1 (diff)
net/mlxfw: Fix out-of-memory error in mfa2 flash burning
[ Upstream commit a5bcd72e054aabb93ddc51ed8cde36a5bfc50271 ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions