summaryrefslogtreecommitdiff
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorNirbhay Sharma <nirbhay.lkd@gmail.com>2025-11-15 11:46:47 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-24 17:53:49 +0100
commit706cc5a93698195fea818ca056632a27a8e5515a (patch)
treeb8c45d0634edff02d405e5bf7b5016e30925801e /drivers/acpi/cppc_acpi.c
parent47d3949a9b04cbcb0e10abae30c2b53e98706e11 (diff)
staging: greybus: uart: check return values during probe
Check the return values of send_control() and send_line_coding() during device initialization in gb_uart_probe(). If these operations fail, the device will be left in an inconsistent state, so propagate the error to properly fail the probe. Both functions call gb_operation_sync() which can fail with errors such as -ENOMEM, -ENODEV, or -ETIMEDOUT. Ignoring these errors means the TTY device would be registered despite incomplete initialization. Signed-off-by: Nirbhay Sharma <nirbhay.lkd@gmail.com> Link: https://patch.msgid.link/20251115061646.160847-2-nirbhay.lkd@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions