diff options
author | Tony Lindgren <[email protected]> | 2023-08-04 16:15:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-08-04 17:14:38 +0200 |
commit | dfe2aeb226fd5e19b0ee795f4f6ed8bc494c1534 (patch) | |
tree | cfc3d37c0e8dcb90ba7e0bf9f04ad488fe148541 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | bbb4abb1bcfb5c25bc022ccecfea919286093b5d (diff) |
serial: 8250: Fix oops for port->pm on uart_change_pm()
Unloading a hardware specific 8250 driver can produce error "Unable to
handle kernel paging request at virtual address" about ten seconds after
unloading the driver. This happens on uart_hangup() calling
uart_change_pm().
Turns out commit 04e82793f068 ("serial: 8250: Reinit port->pm on port
specific driver unbind") was only a partial fix. If the hardware specific
driver has initialized port->pm function, we need to clear port->pm too.
Just reinitializing port->ops does not do this. Otherwise serial8250_pm()
will call port->pm() instead of serial8250_do_pm().
Fixes: 04e82793f068 ("serial: 8250: Reinit port->pm on port specific driver unbind")
Signed-off-by: Tony Lindgren <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions