mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
msm: camera: isp: variable should be accessed only if match is found
There is a possibility that the priority variable would be accessed even for the HEAD node which would result in out of bound errors, so access the elements of the structure only if the handler is found. CRs-Fixed: 2646173 Change-Id: I0540658b9c9487f6e3a4601a488a1add1e790dda Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
This commit is contained in:
parent
ede10a2048
commit
ae5d1857a3
1 changed files with 1 additions and 1 deletions
|
|
@ -515,8 +515,8 @@ int cam_irq_controller_unsubscribe_irq(void *irq_controller,
|
|||
}
|
||||
}
|
||||
|
||||
priority = evt_handler->priority;
|
||||
if (found) {
|
||||
priority = evt_handler->priority;
|
||||
for (i = 0; i < controller->num_registers; i++) {
|
||||
irq_register = &controller->irq_register_arr[i];
|
||||
irq_register->top_half_enable_mask[priority] &=
|
||||
|
|
|
|||
Loading…
Reference in a new issue