qlcnic: Fix bad kzalloc null test
authorXu Wang <vulab@iscas.ac.cn>
Thu, 26 Mar 2020 10:14:29 +0000 (18:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 14:11:50 +0000 (16:11 +0200)
commit2260967e8dfd127a4c89a3cb3d1fe9f00763f7e7
tree8e2052f4d86736ae26eeae3252f2ca6ce6f07f0b
parent0fb37371102fd6f117190388878558616409c088
qlcnic: Fix bad kzalloc null test

[ Upstream commit bcaeb886ade124331a6f3a5cef34a3f1484c0a03 ]

In qlcnic_83xx_get_reset_instruction_template, the variable
of null test is bad, so correct it.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c