Re: [PATCH 2/2] drm/dp: Don't trust drm_dp_downstream_id()

2017-07-21 Thread Jani Nikula
On Fri, 21 Jul 2017, Chris Wilson wrote: > Quoting Jani Nikula (2017-07-21 08:22:27) >> On Thu, 20 Jul 2017, Chris Wilson wrote: >> > Before we interpret drm_dp_downstream_id() as a string, make sure it is >> > NULL terminated, even when drm_dp_downtsream_id() fails. >> > >> > Bugzilla: https://b

Re: [PATCH 2/2] drm/dp: Don't trust drm_dp_downstream_id()

2017-07-21 Thread Chris Wilson
Quoting Jani Nikula (2017-07-21 08:22:27) > On Thu, 20 Jul 2017, Chris Wilson wrote: > > Before we interpret drm_dp_downstream_id() as a string, make sure it is > > NULL terminated, even when drm_dp_downtsream_id() fails. > > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101660 > > Si

Re: [PATCH 2/2] drm/dp: Don't trust drm_dp_downstream_id()

2017-07-21 Thread Jani Nikula
On Fri, 21 Jul 2017, Jani Nikula wrote: > On Thu, 20 Jul 2017, Chris Wilson wrote: >> Before we interpret drm_dp_downstream_id() as a string, make sure it is >> NULL terminated, even when drm_dp_downtsream_id() fails. >> >> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101660 >> Signed-o

Re: [PATCH 2/2] drm/dp: Don't trust drm_dp_downstream_id()

2017-07-21 Thread Jani Nikula
On Thu, 20 Jul 2017, Chris Wilson wrote: > Before we interpret drm_dp_downstream_id() as a string, make sure it is > NULL terminated, even when drm_dp_downtsream_id() fails. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101660 > Signed-off-by: Chris Wilson > --- > drivers/gpu/drm/dr

[PATCH 2/2] drm/dp: Don't trust drm_dp_downstream_id()

2017-07-20 Thread Chris Wilson
Before we interpret drm_dp_downstream_id() as a string, make sure it is NULL terminated, even when drm_dp_downtsream_id() fails. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101660 Signed-off-by: Chris Wilson --- drivers/gpu/drm/drm_dp_helper.c | 3 ++- 1 file changed, 2 insertions(+),