commit | 54be5b8ce33f8d1a05b258070c81ed98f935883d | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Fri Sep 21 02:53:17 2018 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Sep 21 19:13:22 2018 -0700 |
tree | ce0ecc3379ae8c477897f76a61111aae4c6a5a26 | |
parent | 86f9bd1ff61c413a2a251fa736463295e4e24733 [diff] |
PCI: hv: Fix return value check in hv_pci_assign_slots() In case of error, the function pci_create_slot() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: a15f2c08c708 ("PCI: hv: support reporting serial number as slot information") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>