Files
linux/drivers/net/ethernet/qlogic/qed
Christophe Jaillet eb2a6b800c 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>
2017-08-07 14:56:15 -07:00
..
2017-06-04 23:08:30 -04:00
2017-05-30 12:07:01 -04:00
2017-05-18 13:21:40 -04:00
2017-05-21 12:56:53 -04:00
2017-04-03 19:16:37 -07:00
2017-05-18 13:21:40 -04:00
2017-01-01 21:02:14 -05:00
2017-05-21 12:56:53 -04:00
2017-06-09 15:49:02 -04:00
2017-07-03 01:43:44 -07:00
2017-06-02 10:33:03 -04:00
2017-05-21 12:56:53 -04:00
2017-05-21 12:56:53 -04:00
2017-06-20 12:34:07 -04:00
2017-01-01 21:02:14 -05:00
2016-10-31 15:52:35 -04:00
2017-06-04 23:08:31 -04:00
2017-07-03 01:43:45 -07:00