Re: (subset) [PATCH] drm/qxl: Add check for drm_cvt_mode

2024-06-30 Thread Maxime Ripard
On Fri, 21 Jun 2024 15:10:31 +0800, Chen Ni wrote: > Add check for the return value of drm_cvt_mode() and return the error if > it fails in order to avoid NULL pointer dereference. > > Applied to misc/kernel.git (drm-misc-next). Thanks! Maxime

Re: [PATCH] drm/qxl: fix null pointer dereference in qxl_add_mode

2024-06-30 Thread Markus Elfring
> In qxl_add_mode(), the return value of drm_cvt_mode() is assigned to mode, > which will lead to a possible NULL pointer dereference on failure of > drm_cvt_mode(). Add a check to avoid npd. 1. Can a wording approach (like the following) be a better change description? A null pointer is store