soc: swr-mstr: Add out-of-bound check

Update out-of-bound check in parse swr port mapping.

Change-Id: I3735ff68c293fdb96dd7b004438faa999195adb2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam
2021-03-11 12:04:31 +05:30
parent 79d3ed87ca
commit d45f83b5bf
2 ha cambiato i file con 8 aggiunte e 1 eliminazioni

Vedi File

@@ -171,7 +171,7 @@ struct swr_mstr_ctrl {
struct work_struct dc_presence_work;
u8 num_ports;
struct swrm_port_type
port_mapping[SWR_MSTR_PORT_LEN][SWR_MAX_CH_PER_PORT];
port_mapping[SWR_MSTR_PORT_LEN + 1][SWR_MAX_CH_PER_PORT];
int swr_irq;
u32 clk_stop_mode0_supp;
struct work_struct wakeup_work;