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, 24 Apr 2020 06:00:24 +0000 (08:00 +0200)
commitd2bca2f3e947f34c22fde7d2ddfd8d2715ee0987
treed1f22ad023aabe9f5945a8ffb447c54eeb0776c9
parent43fde2214bfc82bf4f015350ad882f258bbde356
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