mirror of https://gitee.com/openkylin/linux.git
serial: 8250: 8250_omap: Fix possible array out of bounds access
k3_soc_devices array is missing a sentinel entry which may result in out
of bounds access as reported by kernel KASAN.
Fix this by adding a sentinel entry.
Fixes: 439c7183e5
("serial: 8250: 8250_omap: Disable RX interrupt after DMA enable")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20201111112653.2710-1-vigneshr@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9b085d6e88
commit
d4548b14dd
|
@ -1199,6 +1199,7 @@ static int omap8250_no_handle_irq(struct uart_port *port)
|
|||
static const struct soc_device_attribute k3_soc_devices[] = {
|
||||
{ .family = "AM65X", },
|
||||
{ .family = "J721E", .revision = "SR1.0" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
static struct omap8250_dma_params am654_dma = {
|
||||
|
|
Loading…
Reference in New Issue