diff options
| author | Dan Carpenter <[email protected]> | 2024-01-10 19:25:21 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-01-28 03:08:16 +0000 |
| commit | 86ee55e9bc7ff7308eda67e5bcb3f8c834c7c113 (patch) | |
| tree | 34c5a9392642fc66f87dac12094af673ba633a5a /scripts/generate_rust_target.rs | |
| parent | tty: serial: Fix bit order in RS485 flag definitions (diff) | |
| download | kernel-86ee55e9bc7ff7308eda67e5bcb3f8c834c7c113.tar.gz kernel-86ee55e9bc7ff7308eda67e5bcb3f8c834c7c113.zip | |
serial: 8250_pci1xxxx: fix off by one in pci1xxxx_process_read_data()
These > comparisons should be >= to prevent writing one element beyond
the end of the rx_buff[] array. The rx_buff[] buffer has RX_BUF_SIZE
elements. Fix the buffer overflow.
Fixes: aba8290f368d ("8250: microchip: pci1xxxx: Add Burst mode reception support in uart driver for writing into FIFO")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/ZZ7vIfj7Jgh-pJn8@moroto
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
