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:
@@ -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;
|
||||
|
Fai riferimento in un nuovo problema
Block a user