On Wed, 24 Jul 2024, Jani Nikula wrote:
> On Wed, 24 Jul 2024, Ma Ke wrote:
> > On Wed, 24 Jul 2024, Jani Nikula wrote:
> >> On Wed, 24 Jul 2024, Ma Ke wrote:
> >> > In drm_client_modeset_probe(), the return value of drm_mode_duplicate()
> >> > is
> >> > assigned to modeset->mode, which will l
On Wed, 24 Jul 2024, Ma Ke wrote:
> On Wed, 24 Jul 2024, Jani Nikula wrote:
>> On Wed, 24 Jul 2024, Ma Ke wrote:
>> > In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is
>> > assigned to modeset->mode, which will lead to a possible NULL pointer
>> > dereference on failure
On Wed, 24 Jul 2024, Jani Nikula wrote:
> On Wed, 24 Jul 2024, Ma Ke wrote:
> > In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is
> > assigned to modeset->mode, which will lead to a possible NULL pointer
> > dereference on failure of drm_mode_duplicate(). Add a check to a
On Wed, 24 Jul 2024, Ma Ke wrote:
> In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is
> assigned to modeset->mode, which will lead to a possible NULL pointer
> dereference on failure of drm_mode_duplicate(). Add a check to avoid npd.
>
> Cc: sta...@vger.kernel.org
> Fixes:
In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is
assigned to modeset->mode, which will lead to a possible NULL pointer
dereference on failure of drm_mode_duplicate(). Add a check to avoid npd.
Cc: sta...@vger.kernel.org
Fixes: cf13909aee05 ("drm/fb-helper: Move out modese