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 05:58:46 +0000 (07:58 +0200)
commitf535c7506dfe3c0e829b4232b5c2d205254bc981
tree0477ecd3474169640dc0ccdb0182f36125a46044
parent3c56ccde964aef46c69e6f7065090743bc7512b9
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