summaryrefslogtreecommitdiff
path: root/Documentation/networking
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-07-04 17:08:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-11 12:53:51 +0300
commitfd21197af5753ea4c114752db0aba80aa9f27af9 (patch)
tree239ee1150883b67a957fd7f5e7d42446eff6f35b /Documentation/networking
parente0c92c32913182fa550a6e5d628c8ff0080598e6 (diff)
downloadlinux-fd21197af5753ea4c114752db0aba80aa9f27af9.tar.xz
Revert "usb: xhci: tegra: Fix error check"
commit 288b4fa1798e3637a9304c6e90a93d900e02369c upstream. This reverts commit 18fc7c435be3f17ea26a21b2e2312fcb9088e01f. The reverted commit was based on static analysis and a misunderstanding of how PTR_ERR() and NULLs are supposed to work. When a function returns both pointer errors and NULL then normally the NULL means "continue operating without a feature because it was deliberately turned off". The NULL should not be treated as a failure. If a driver cannot work when that feature is disabled then the KConfig should enforce that the function cannot return NULL. We should not need to test for it. In this code, the patch means that certain tegra_xusb_probe() will fail if the firmware supports power-domains but CONFIG_PM is disabled. Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Fixes: 18fc7c435be3 ("usb: xhci: tegra: Fix error check") Cc: stable <stable@kernel.org> Link: https://lore.kernel.org/r/8baace8d-fb4b-41a4-ad5f-848ae643a23b@moroto.mountain Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/networking')
0 files changed, 0 insertions, 0 deletions