]> git.baikalelectronics.ru Git - kernel.git/commit
um: port_user: Improve error handling when port-helper is not found
authorGlenn Washburn <development@efficientek.com>
Thu, 3 Mar 2022 07:53:32 +0000 (01:53 -0600)
committerRichard Weinberger <richard@nod.at>
Fri, 11 Mar 2022 09:55:55 +0000 (10:55 +0100)
commitc54ee31812d31fb8f0cc88b4e5444250f2ce2f3b
tree621f747bf971f971f1e5a9415aa58f34a6aa6b89
parent8a6d89e21d90c4d0c688ccc5fc770fc5215e5558
um: port_user: Improve error handling when port-helper is not found

Check if port-helper exists and is executable. If not, write an error
message to the kernel log with information to help the user diagnose the
issue and exit with an error. If UML_PORT_HELPER was not set, write a
message suggesting that the user set it. This makes it easier to understand
why telneting to the UML instance is failing and what can be done to fix it.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/port_user.c