diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2017-08-07 00:00:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 14:56:15 -0700 |
commit | eb2a6b800c2d1336cce6709d48c42753a611c07b (patch) | |
tree | ee88ba3f9c9a2d5b90bab5ffab7458662583ecab /drivers/net/ethernet/mellanox | |
parent | b925ef37b0a152b0c06aa43bc9204d0116f676d7 (diff) |
qed: Fix a memory allocation failure test in 'qed_mcp_cmd_init()'
We allocate 'p_info->mfw_mb_cur' and 'p_info->mfw_mb_shadow' but we check
'p_info->mfw_mb_addr' instead of 'p_info->mfw_mb_cur'.
'p_info->mfw_mb_addr' is never 0, because it is initiliazed a few lines
above in 'qed_load_mcp_offsets()'.
Update the test and check the result of the 2 'kzalloc()' instead.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
0 files changed, 0 insertions, 0 deletions