OpenCloudOS-Kernel/drivers/net/ethernet/qlogic
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
..
netxen netxen_nic: Remove unused pointer hdr in netxen_setup_minidump() 2017-07-03 02:38:02 -07:00
qed qed: Fix a memory allocation failure test in 'qed_mcp_cmd_init()' 2017-08-07 14:56:15 -07:00
qede qed*: Set rdma generic functions prefix 2017-06-20 12:34:08 -04:00
qlcnic qlcnic: Fix tunnel offload for 82xx adapters 2017-06-02 14:30:58 -04:00
qlge networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
Kconfig qed: Add support for hardware offloaded FCoE. 2017-02-19 18:10:42 -05:00
Makefile qede: Add basic Network driver 2015-10-27 19:34:47 -07:00
qla3xxx.c net: qlogic: qla3xxx: use new api ethtool_{get|set}_link_ksettings 2017-02-20 10:27:17 -05:00
qla3xxx.h