[lvc-project] [PATCH v2] drm/qxl: fix NULL dereference in qxl_add_mode

Fedor Pchelkin pchelkin at ispras.ru
Fri Mar 15 17:58:10 MSK 2024


On Fri, 01. Mar 15:26, Aleksandr Burakov wrote:
> Return value of a function 'drm_cvt_mode' is dereferenced without
> checking for NULL but drm_mode_create() in drm_cvt_mode() may
> return NULL value in case of memory allocation error.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Fixes: 1b043677d4be ("drm/qxl: add qxl_add_mode helper function")
> Signed-off-by: Aleksandr Burakov <a.burakov at rosalinux.ru>
> ---
> v2: case with false value of 'preferred' is now taken into account

Добавлено в ветки linux-5.10-lvc-next и linux-6.1-lvc-next.

В публичной linux-5.10-lvc [1] появится при выходе ближайшего релиза.

Спасибо!

[1]: https://git.linuxtesting.ru/pub/scm/linux/kernel/git/lvc/linux-stable.git/log/



More information about the lvc-project mailing list