diff options
author | 2022-04-22 06:26:52 +0000 | |
---|---|---|
committer | 2022-04-23 10:33:52 +0200 | |
commit | a03e2ddab8e735e2cc315609b297b300e9cc60d2 (patch) | |
tree | 3a45927501b0cdaa88f4b4c0590bd4676f6ed091 /include/linux/usb.h | |
parent | drivers: usb: host: Fix deadlock in oxu_bus_suspend() (diff) | |
download | wireguard-linux-a03e2ddab8e735e2cc315609b297b300e9cc60d2.tar.xz wireguard-linux-a03e2ddab8e735e2cc315609b297b300e9cc60d2.zip |
usb: dwc3: pci: Fix pm_runtime_get_sync() error checking
If the device is already in a runtime PM enabled state
pm_runtime_get_sync() will return 1, so a test for negative
value should be used to check for errors.
Fixes: 8eed00b237a28 ("usb: dwc3: pci: Runtime resume child device from wq")
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20220422062652.10575-1-zhengyongjun3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb.h')
0 files changed, 0 insertions, 0 deletions