linux-stable/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
..
Makefile qed: Implement iWARP initialization, teardown and qp operations 2017-07-03 01:43:44 -07:00
qed.h qed: iWARP CM add passive side connect 2017-07-03 01:43:45 -07:00
qed_cxt.c qed: Add iWARP protocol support in context allocation 2017-07-03 01:43:45 -07:00
qed_cxt.h qed: Add bitmaps for VF CIDs 2017-06-04 23:08:30 -04:00
qed_dcbx.c qed: Split rdma content between qed_rdma and qed_roce 2017-06-21 15:32:59 -04:00
qed_dcbx.h qed: Correct DCBx update scheme 2017-05-30 12:07:01 -04:00
qed_debug.c qed: Get rid of the attention-arrays 2017-05-30 12:07:03 -04:00
qed_debug.h qed: Utilize FW 8.20.0.0 2017-05-18 13:21:40 -04:00
qed_dev.c qed: Add iWARP support for physical queue allocation 2017-07-03 01:43:45 -07:00
qed_dev_api.h qed: Chain support for external PBL 2017-06-20 12:34:06 -04:00
qed_fcoe.c qed: Share additional information with qedf 2017-06-02 10:33:03 -04:00
qed_fcoe.h qed: Revise alloc/setup/free flow 2017-05-21 12:56:53 -04:00
qed_hsi.h qed: Implement iWARP initialization, teardown and qp operations 2017-07-03 01:43:44 -07:00
qed_hw.c qed: Warn PTT usage by wrong hw-function 2017-04-06 14:26:31 -07:00
qed_hw.h qed: Revise QM cofiguration 2017-04-03 19:16:37 -07:00
qed_init_fw_funcs.c qed: Utilize FW 8.20.0.0 2017-05-18 13:21:40 -04:00
qed_init_ops.c qed: Revise alloc/setup/free flow 2017-05-21 12:56:53 -04:00
qed_init_ops.h qed*: Update to dual-license 2017-01-01 21:02:14 -05:00
qed_int.c qed: Reset IGU CAM to default on init 2017-06-01 12:17:20 -04:00
qed_int.h qed: Reset IGU CAM to default on init 2017-06-01 12:17:20 -04:00
qed_iscsi.c qed: SPQ async callback registration 2017-06-20 12:34:09 -04:00
qed_iscsi.h qed: Revise alloc/setup/free flow 2017-05-21 12:56:53 -04:00
qed_iwarp.c qed: Fix printk option passed when printing ipv6 addresses 2017-07-11 13:36:05 -07:00
qed_iwarp.h qed: iWARP CM add active side connect 2017-07-03 01:43:45 -07:00
qed_l2.c qed: iWARP CM add passive side connect 2017-07-03 01:43:45 -07:00
qed_l2.h qed: IOV db support multiple queues per qzone 2017-06-04 23:08:31 -04:00
qed_ll2.c qed: Add iWARP support in ll2 connections 2017-07-03 01:43:44 -07:00
qed_ll2.h qed*: LL2 callback operations 2017-06-09 15:49:02 -04:00
qed_main.c qed: Introduce iWARP personality 2017-07-03 01:43:44 -07:00
qed_mcp.c qed: Fix a memory allocation failure test in 'qed_mcp_cmd_init()' 2017-08-07 14:56:15 -07:00
qed_mcp.h qed: Support NVM-image reading API 2017-06-02 10:33:03 -04:00
qed_ooo.c qed: Revise alloc/setup/free flow 2017-05-21 12:56:53 -04:00
qed_ooo.h qed: Revise alloc/setup/free flow 2017-05-21 12:56:53 -04:00
qed_ptp.c qed: Drop the 's' from num_ports_in_engines 2017-05-24 15:17:19 -04:00
qed_rdma.c qed: iWARP CM add active side connect 2017-07-03 01:43:45 -07:00
qed_rdma.h qed: iWARP CM add passive side connect 2017-07-03 01:43:45 -07:00
qed_reg_addr.h qed: RoCE EDPM to honor PFC 2017-06-20 12:34:07 -04:00
qed_roce.c qed: Implement iWARP initialization, teardown and qp operations 2017-07-03 01:43:44 -07:00
qed_roce.h qed: Split rdma content between qed_rdma and qed_roce 2017-06-21 15:32:59 -04:00
qed_selftest.c qed*: Update to dual-license 2017-01-01 21:02:14 -05:00
qed_selftest.h qed: Add nvram selftest 2016-10-31 15:52:35 -04:00
qed_sp.h qed: iWARP CM add passive side connect 2017-07-03 01:43:45 -07:00
qed_sp_commands.c qed: Support dynamic s-tag change 2017-05-30 12:07:02 -04:00
qed_spq.c qed: Split rdma content between qed_rdma and qed_roce 2017-06-21 15:32:59 -04:00
qed_sriov.c qed: SPQ async callback registration 2017-06-20 12:34:09 -04:00
qed_sriov.h qed: SPQ async callback registration 2017-06-20 12:34:09 -04:00
qed_vf.c qed: VF XDP support 2017-06-04 23:08:31 -04:00
qed_vf.h qed: add qed_int_sb_init() stub function 2017-06-09 15:51:45 -04:00