OSDN Git Service

qlcnic: Fix bad kzalloc null test
authorXu Wang <vulab@iscas.ac.cn>
Thu, 26 Mar 2020 10:14:29 +0000 (18:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Mar 2020 18:44:22 +0000 (11:44 -0700)
commitbcaeb886ade124331a6f3a5cef34a3f1484c0a03
treeaa07b5c62cc7583141c0d09c62a672d700a5080c
parent1b649e0bcae71c118c1333e02249a7510ba7f70a
qlcnic: Fix bad kzalloc null test

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>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c