]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit117b0fd81c1b2460a0b691493fa159ced2170776
treeaa07b5c62cc7583141c0d09c62a672d700a5080c
parentb42429b4cab80d31eb5840c514cc2f3ffad769ce
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