diff options
author | Geert Uytterhoeven | 2018-12-13 19:44:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-12-17 15:04:11 +0100 |
commit | 2e948218b7c1262a3830823d6620eb227e3d4e3a (patch) | |
tree | a26c1984023a9a516b6b8d2217c0ba80a0e2da75 /drivers/spi/spi-clps711x.c | |
parent | serial: sh-sci: Fix locking in sci_submit_rx() (diff) | |
download | kernel-qcow2-linux-2e948218b7c1262a3830823d6620eb227e3d4e3a.tar.gz kernel-qcow2-linux-2e948218b7c1262a3830823d6620eb227e3d4e3a.tar.xz kernel-qcow2-linux-2e948218b7c1262a3830823d6620eb227e3d4e3a.zip |
serial: sh-sci: Fix crash in rx_timer_fn() on PIO fallback
When falling back to PIO, active_rx must be set to a different value
than cookie_rx[i], else sci_dma_rx_find_active() will incorrectly find a
match, leading to a NULL pointer dereference in rx_timer_fn() later.
Use zero instead, which is the same value as after driver
initialization.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/spi/spi-clps711x.c')
0 files changed, 0 insertions, 0 deletions