Re: [PATCH v2] drm/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes

2024-06-27 Thread Greg KH
On Thu, Jun 27, 2024 at 01:33:40PM +0200, Markus Elfring wrote: > > In cdv_intel_lvds_get_modes(), the return value of drm_mode_duplicate() > > is assigned to mode, which will lead to a NULL pointer dereference on > > failure of drm_mode_duplicate(). Add a check to avoid npd. > > A) Can a wording

Re: [PATCH v2] drm/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes

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

[PATCH v2] drm/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes

2024-06-26 Thread Ma Ke
In cdv_intel_lvds_get_modes(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. Cc: sta...@vger.kernel.org Fixes: 6a227d5fd6c4 ("gma500: Add support for Cedarview") Signed-off-b