Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1425667imm; Thu, 5 Jul 2018 23:12:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfr6PE7VoU95Ujw1uBb8uKnIKlLwfr/FMeRgVS/+j5jorO1VEYojWICaPdjd67lWLvcEG4o X-Received: by 2002:a63:3190:: with SMTP id x138-v6mr8219440pgx.60.1530857566920; Thu, 05 Jul 2018 23:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530857566; cv=none; d=google.com; s=arc-20160816; b=tfV6Lw08or9zlfaRbTdHvAsTWRMYXQxN4ZWPSyd0/vNVkacncg8u3yFu7zqphklILv UWxLFPAjY+GwGyoRTN+gjntn39uJjtqMdIOTr31dx82fX4nOQpNCcn8AUf9inI2qe6CW o3tAxR2rM1Yd/4uWVoIsRiIhPiBDqiGBqARFTdwcSjUwpUTpOhMXY4WM6DQeZanuDf20 2V0WgwYJuVCJvUu8NBC/xZPCPP1IDViCrrReNj1sNPZFJ+OVN9y07V9gC6zMEPE5rcXV CU0EDMwvzva1HH0EbYi2xsuYlExD0ye/yRkmb/9lmL5bz36QGuojBZhnLtERfOosmDMx Rmuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=TaHgCDe2DwOyxNfzrgVLFu9/txuL/yTpyvvCygoEyn4=; b=yjfUxTn0QCPE+Yo5ZVGl40CH9sgj1gkkw0g4uFEGo3BpjoX4PiSTzQq0SFulRoCcXt oW4xc7eoTTLawsiLNznsHwrTrxO7NYBOxwJSmL5XKHPY0CCAICGzozZNf6VVyhKy0HJh LI910m9q+3eMC7m1h/cQh4CEpSeS28e+ejXDquBw6Jfdn75f/1bej+wjBIGVw1BLVgnz 1aaYvmdnYhFDo8Q0zUAl7koGS9smTUbHna6G4RZvd3l15Z9xT2osREU1XWs8LnGjkQIt HbmojOSWWH8Eh19BguqLTwIVzZgJ9k2TZNVbZBeTVBNywXEV3aN6ypJMG1a1A01MkdwS LD2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si7189530plp.236.2018.07.05.23.12.32; Thu, 05 Jul 2018 23:12:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933059AbeGFFsE (ORCPT + 99 others); Fri, 6 Jul 2018 01:48:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59584 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932603AbeGFFsB (ORCPT ); Fri, 6 Jul 2018 01:48:01 -0400 Received: from localhost (D57D388D.static.ziggozakelijk.nl [213.125.56.141]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 91313BA2; Fri, 6 Jul 2018 05:48:00 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mikita Lipski , Harry Wentland , Alex Deucher Subject: [PATCH 4.17 23/46] drm/amd/display: Clear connectors edid pointer Date: Fri, 6 Jul 2018 07:46:44 +0200 Message-Id: <20180706054525.708444787@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180706054524.595521988@linuxfoundation.org> References: <20180706054524.595521988@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mikita Lipski commit 5326c4525d1b2d5f1519268dd305e19c9bd4ef56 upstream. Clear connector's edid pointer on coonnector update, when unplugging the display. Fix poison EDID when hotplugging on previously used connector. Signed-off-by: Mikita Lipski Reviewed-by: Harry Wentland Cc: stable@vger.kernel.org Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -928,6 +928,7 @@ amdgpu_dm_update_connector_after_detect( drm_mode_connector_update_edid_property(connector, NULL); aconnector->num_modes = 0; aconnector->dc_sink = NULL; + aconnector->edid = NULL; } mutex_unlock(&dev->mode_config.mutex);