diff options
| author | Nirbhay Sharma <nirbhay.lkd@gmail.com> | 2025-11-15 11:46:47 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-24 17:53:49 +0100 |
| commit | 706cc5a93698195fea818ca056632a27a8e5515a (patch) | |
| tree | b8c45d0634edff02d405e5bf7b5016e30925801e /drivers/fpga/machxo2-spi.c | |
| parent | 47d3949a9b04cbcb0e10abae30c2b53e98706e11 (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/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions
