]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: faraday: Fix wrong pointer passed to PTR_ERR()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 17 Oct 2017 12:11:03 +0000 (12:11 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Oct 2017 23:02:46 +0000 (18:02 -0500)
commitb3c433efb8a3d347ddc39b95606a6e7732e97649
tree79c7241024e7b00f0313605452c69d801d22af06
parent9e66317d3c92ddaab330c125dfe9d06eee268aff
PCI: faraday: Fix wrong pointer passed to PTR_ERR()

PTR_ERR should access the value just tested by IS_ERR, otherwise the wrong
error code will be returned.

Fixes: 2eeb02b28579 ("PCI: faraday: Add clock handling")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pci/host/pci-ftpci100.c