Comment 22 for bug 1958006

Revision history for this message
You-Sheng Yang (vicamo) wrote :

[ 52.050620] UBSAN: array-index-out-of-bounds in /tmp/kernel-vicamo-8789bd62d725-b752/build/drivers/media/pci/intel/ipu6/ipu-resources.c:633:30
[ 52.050631] index -1 is out of range for type 'ipu_resource_alloc [128]'

https://git.launchpad.net/~vicamo/+git/ubuntu-kernel/tree/drivers/media/pci/intel/ipu6/ipu-resources.c?id=1648371a4229949b4ded06a6387332dd5008540d#n633

632 idx = alloc->resources - 1;
633 p = alloc->resource_alloc[idx].pos;