soc: aspeed: lpc-snoop: Constrain parameters in channel paths
authorAndrew Jeffery <andrew@codeconstruct.com.au>
Mon, 16 Jun 2025 13:13:41 +0000 (22:43 +0930)
committerAndrew Jeffery <andrew@codeconstruct.com.au>
Tue, 8 Jul 2025 02:05:07 +0000 (11:35 +0930)
commit3e9c15784a583ad242e3374839d1ce849876e11a
treeb9e8582af041c3adc43c821036e896f2239ea868
parent3795e993931f2120bf64b8cdf03bb8c4f988b920
soc: aspeed: lpc-snoop: Constrain parameters in channel paths

Ensure pointers and the channel index are valid before use.

Link: https://patch.msgid.link/20250616-aspeed-lpc-snoop-fixes-v2-4-3cdd59c934d3@codeconstruct.com.au
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
drivers/soc/aspeed/aspeed-lpc-snoop.c