]> git.baikalelectronics.ru Git - kernel.git/commit
misc/pvpanic: fix return value check in pvpanic_pci_probe()
authorQiheng Lin <linqiheng@huawei.com>
Tue, 30 Mar 2021 01:36:59 +0000 (09:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Apr 2021 14:16:46 +0000 (16:16 +0200)
commit5acd9dacee747d5d5aaa939c06f1e51487b30c7f
tree027371c502d48cd7dc13beac1b44623f24a13780
parentf4ed8ae5c4461865cac34c1688bba2d7ef9afe40
misc/pvpanic: fix return value check in pvpanic_pci_probe()

In case of error, the function pci_iomap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
Link: https://lore.kernel.org/r/20210330013659.916-1-linqiheng@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/pvpanic/pvpanic-pci.c