mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-03 19:55:31 +00:00
usbip: give a more helpful error message if vhdi_hcd isn't loaded
Suggest loading vhdi_hcd if it's not loaded to make error message less opaque Signed-off-by: Galen Guyer <galen@galenguyer.com> Reviewed-By: Hongren Zheng <i@zenithal.me> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Link: https://lore.kernel.org/r/20230508212120.435329-1-galen@galenguyer.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b4a4be8471
commit
0c7f35d26b
@ -86,7 +86,7 @@ static int import_device(int sockfd, struct usbip_usb_device *udev)
|
||||
|
||||
rc = usbip_vhci_driver_open();
|
||||
if (rc < 0) {
|
||||
err("open vhci_driver");
|
||||
err("open vhci_driver (is vhci_hcd loaded?)");
|
||||
goto err_out;
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ static int detach_port(char *port)
|
||||
|
||||
ret = usbip_vhci_driver_open();
|
||||
if (ret < 0) {
|
||||
err("open vhci_driver");
|
||||
err("open vhci_driver (is vhci_hcd loaded?)");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ static int list_imported_devices(void)
|
||||
|
||||
ret = usbip_vhci_driver_open();
|
||||
if (ret < 0) {
|
||||
err("open vhci_driver");
|
||||
err("open vhci_driver (is vhci_hcd loaded?)");
|
||||
goto err_names_free;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user