Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4354614e authored by Ashish Chavan's avatar Ashish Chavan
Browse files

power: smb1398: Fix array index out of bounds error



In smb1398_get_irq_index_byname() while accessing 'smb_irqs' we
may cause array index out of bound error. Fix this by looping
till ARRAY_SIZE(smb_irqs) instead of NUM_IRQS.

While at it also fix usage of uninitialized variable of 'main_fcc_ua'.

Change-Id: I2f726cdc23fdbff431d48699c8407744dd0ca93e
Signed-off-by: default avatarAshish Chavan <ashichav@codeaurora.org>
parent e6e93f60
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment