[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <50fb7dba.1f7.178b93c0caa.Coremail.wangyingjie55@126.com>
Date: Sat, 10 Apr 2021 08:43:43 +0800 (CST)
From: "Yingjie Wang" <wangyingjie55@....com>
To: "Alex Deucher" <alexdeucher@...il.com>
Cc: "Deucher, Alexander" <alexander.deucher@....com>,
"Christian Koenig" <christian.koenig@....com>,
"Dave Airlie" <airlied@...ux.ie>,
"Daniel Vetter" <daniel@...ll.ch>,
"Dave Airlie" <airlied@...hat.com>,
"Maling list - DRI developers" <dri-devel@...ts.freedesktop.org>,
"amd-gfx list" <amd-gfx@...ts.freedesktop.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re:Re: [PATCH v1] drm/radeon: Fix a missing check bug in
radeon_dp_mst_detect()
My pleasure!
At 2021-04-09 04:17:36, "Alex Deucher" <alexdeucher@...il.com> wrote:
>Applied. Thanks!
>
>Alex
>
>On Wed, Apr 7, 2021 at 2:23 AM <wangyingjie55@....com> wrote:
>>
>> From: Yingjie Wang <wangyingjie55@....com>
>>
>> In radeon_dp_mst_detect(), We should check whether or not @connector
>> has been unregistered from userspace. If the connector is unregistered,
>> we should return disconnected status.
>>
>> Fixes: 9843ead08f18 ("drm/radeon: add DisplayPort MST support (v2)")
>> Signed-off-by: Yingjie Wang <wangyingjie55@....com>
>> ---
>> drivers/gpu/drm/radeon/radeon_dp_mst.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/radeon/radeon_dp_mst.c b/drivers/gpu/drm/radeon/radeon_dp_mst.c
>> index 2c32186c4acd..4e4c937c36c6 100644
>> --- a/drivers/gpu/drm/radeon/radeon_dp_mst.c
>> +++ b/drivers/gpu/drm/radeon/radeon_dp_mst.c
>> @@ -242,6 +242,9 @@ radeon_dp_mst_detect(struct drm_connector *connector,
>> to_radeon_connector(connector);
>> struct radeon_connector *master = radeon_connector->mst_port;
>>
>> + if (drm_connector_is_unregistered(connector))
>> + return connector_status_disconnected;
>> +
>> return drm_dp_mst_detect_port(connector, ctx, &master->mst_mgr,
>> radeon_connector->port);
>> }
>> --
>> 2.7.4
>>
>> _______________________________________________
>> dri-devel mailing list
>> dri-devel@...ts.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/dri-devel
Powered by blists - more mailing lists