Message ID | 20200401161539.772280409@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=zuZT=5R=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DA0CC2D0F2 for <stable@archiver.kernel.org>; Wed, 1 Apr 2020 16:39:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B902206F8 for <stable@archiver.kernel.org>; Wed, 1 Apr 2020 16:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585759140; bh=IV6LN9ojUKmjnTANKBfZlCpOSzG754DJ0ZRpPWzNJoI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=pVbmewcB/R+AWF0rjbbGrHhaE/4s4sGE8akJjb00yfEFYntGhKYVRCCBJbw6RCndB vdXfgjsIro2nLMNr+JMObuGTVl3Yojdz5GJ116hhlOjULpHIJ3BcAcfs8duUV/XKci r+wlXD8TaNI3eEeF5pV1JppWEMkvGXOY+NZW9ELg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389141AbgDAQiz (ORCPT <rfc822;stable@archiver.kernel.org>); Wed, 1 Apr 2020 12:38:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:38740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389137AbgDAQiy (ORCPT <rfc822;stable@vger.kernel.org>); Wed, 1 Apr 2020 12:38:54 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 46DDA20772; Wed, 1 Apr 2020 16:38:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585759133; bh=IV6LN9ojUKmjnTANKBfZlCpOSzG754DJ0ZRpPWzNJoI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hx/ZHYyoiwLbv+NOwtV7AlKEUWt+akJOjpKFyeZYFZ7a1JBuZ8aZHo6VbG6loJZut mOebFwO8jjAFEH8HHoe4IIz6wukdrhmbJjgnbi4Zxw5Cy4vsX3WqR7es8f58N/7wVa AyfxqQVEwE4ly7EiAAriLrA4PYgnGBVOrm/QB7lY= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Lyude Paul <lyude@redhat.com>, Daniel Vetter <daniel@ffwll.ch>, Sean Paul <sean@poorly.run>, Jerry Zuo <Jerry.Zuo@amd.com>, Harry Wentland <Harry.Wentland@amd.com>, Guenter Roeck <linux@roeck-us.net> Subject: [PATCH 4.9 037/102] Revert "drm/dp_mst: Skip validating ports during destruction, just ref" Date: Wed, 1 Apr 2020 18:17:40 +0200 Message-Id: <20200401161539.772280409@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161530.451355388@linuxfoundation.org> References: <20200401161530.451355388@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -980,20 +980,9 @@ static struct drm_dp_mst_port *drm_dp_ms static struct drm_dp_mst_port *drm_dp_get_validated_port_ref(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port) { struct drm_dp_mst_port *rport = NULL; - mutex_lock(&mgr->lock); - /* - * Port may or may not be 'valid' but we don't care about that when - * destroying the port and we are guaranteed that the port pointer - * will be valid until we've finished - */ - if (current_work() == &mgr->destroy_connector_work) { - kref_get(&port->kref); - rport = port; - } else if (mgr->mst_primary) { - rport = drm_dp_mst_get_port_ref_locked(mgr->mst_primary, - port); - } + if (mgr->mst_primary) + rport = drm_dp_mst_get_port_ref_locked(mgr->mst_primary, port); mutex_unlock(&mgr->lock); return rport; }