diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-03-26 06:43:57 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-26 11:59:25 +0200 |
commit | 97eba3260e7c4e65e1c085301c2330110bd6aa2b (patch) | |
tree | d1b4d8c1aa578664bbf83c8fe91dd11b28f33f47 /arch | |
parent | 7fafcfdf6377b18b2a726ea554d6e593ba44349f (diff) | |
download | linux-97eba3260e7c4e65e1c085301c2330110bd6aa2b.tar.bz2 |
usb: roles: Fix return value check in intel_xhci_usb_probe()
In case of error, the function devm_ioremap_nocache() returns NULL
pointer not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.
Fixes: f6fb9ec02be1 ("usb: roles: Add Intel xHCI USB role switch driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions