Re: [PATCH] drm/amd/display: Fix NULL dereference when preferred_mode is NULL

2018-11-29 Thread Kazlauskas, Nicholas
On 11/29/18 10:17 AM, Nicholas Kazlauskas wrote: > [Why] > When preferred_mode is NULL a null pointer dereference can occur > when trying to get the preferred refresh in create_stream_for_sink. > > [How] > Only query preferred_refresh when preferred_mode is not NULL. Consider > preferred_refresh i

[PATCH] drm/amd/display: Fix NULL dereference when preferred_mode is NULL

2018-11-29 Thread Nicholas Kazlauskas
[Why] When preferred_mode is NULL a null pointer dereference can occur when trying to get the preferred refresh in create_stream_for_sink. [How] Only query preferred_refresh when preferred_mode is not NULL. Consider preferred_refresh if it is since it's only being used to compare to the previous v