mirror of https://gitee.com/openkylin/linux.git
09c4b49457
This doesn't affect runtime because in the current code "idx" is always
valid.
First, we read from "vgdev->capsets[idx].max_size" before checking
whether "idx" is within bounds. And secondly the bounds check is off by
one so we could end up reading one element beyond the end of the
vgdev->capsets[] array.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
virtgpu_debugfs.c | ||
virtgpu_display.c | ||
virtgpu_drm_bus.c | ||
virtgpu_drv.c | ||
virtgpu_drv.h | ||
virtgpu_fb.c | ||
virtgpu_fence.c | ||
virtgpu_gem.c | ||
virtgpu_ioctl.c | ||
virtgpu_kms.c | ||
virtgpu_object.c | ||
virtgpu_plane.c | ||
virtgpu_prime.c | ||
virtgpu_ttm.c | ||
virtgpu_vq.c |