mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-21 22:31:42 +00:00
cal->ctx[i] is allocated with this loop
for (i = 0; i < cal->data->num_csi2_phy; ++i) {
and accessed in the error handler and else where with this loop
for (i = 0; i < cal->num_contexts; i++)
Because the first loop contains a continue statement
before cal->num_contexts is incremented, using i as the
indexer will leave gaps in the cal->ctx[].
So use cal->num_contexts as the indexer.
Fixes:
|
||
|---|---|---|
| .. | ||
| cal_regs.h | ||
| cal-camerarx.c | ||
| cal-video.c | ||
| cal.c | ||
| cal.h | ||
| csc.c | ||
| csc.h | ||
| Makefile | ||
| sc_coeff.h | ||
| sc.c | ||
| sc.h | ||
| vpdma_priv.h | ||
| vpdma.c | ||
| vpdma.h | ||
| vpe_regs.h | ||
| vpe.c | ||