diff options
| author | Yi Yang <[email protected]> | 2022-06-28 08:35:15 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-06-30 15:15:47 +0000 |
| commit | 6e690d54cfa802f939cefbd2fa2c91bd0b8bd1b6 (patch) | |
| tree | 2166f2337e0a8dca5b8275fa17c3f8064922d79f /drivers/tty/tty_buffer.c | |
| parent | serial: stm32: Clear prev values before setting RTS delays (diff) | |
| download | kernel-6e690d54cfa802f939cefbd2fa2c91bd0b8bd1b6.tar.gz kernel-6e690d54cfa802f939cefbd2fa2c91bd0b8bd1b6.zip | |
serial: 8250: fix return error code in serial8250_request_std_resource()
If port->mapbase = NULL in serial8250_request_std_resource() , it need
return a error code instead of 0. If uart_set_info() fail to request new
regions by serial8250_request_std_resource() but the return value of
serial8250_request_std_resource() is 0, The system incorrectly considers
that the resource application is successful and does not attempt to
restore the old setting. A null pointer reference is triggered when the
port resource is later invoked.
Signed-off-by: Yi Yang <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/tty_buffer.c')
0 files changed, 0 insertions, 0 deletions
