Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp796826imm; Mon, 21 May 2018 14:39:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpqDbShbHgjW2wx/YRxVTdGfeELULt/LUVgl0cwW84qdP6s7OBQMil5ih7PG8Ce/tqAtjh5 X-Received: by 2002:a17:902:265:: with SMTP id 92-v6mr21444801plc.368.1526938746436; Mon, 21 May 2018 14:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526938746; cv=none; d=google.com; s=arc-20160816; b=PEpf4LN4tSeSD0zsm8tV3JyxtnEEGtd+eqnWCa0d8NRaH+s8DinESF1YpJruIm3Fwc +ENPMFzHQEtMRsbyZLS6kUBAMYCI3NvVCttrr84VuC3s38lv0Q9Lo/6M1H0h2GvLp8Uy dQhRFDkJhXoVeIYJkREEsAX5/mcjihpRiqM/k8Q2p4/mey9kniFA5iBt/ewz8l6RlCTC cqaff9g3ogca8dbB4zfifoJ+GShfLB6MzrMRRUtuH0OFqDZbkBm3ZrrimMcf3VgzGLUk JIM3YRsiC1AUnPrf7yPI8phU3anNmTLEszYlc3D84uIYtxKmUosR4wqieBeZ0ELcDZwX KubA== 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:dkim-signature :arc-authentication-results; bh=TA8IuuZLXePI6EsWPZDYKnskGGngoqOWQ6BPSveCjuA=; b=Brc4we0zcxGnh8rLSUWBxHvx6cUMsBeKYelFuB9761dOQ36zjrGPniXySMQWhw+FCh 3xMLAOsV8H5CVlYHKWhp6YenlwaM+9fyfZJO2Wrc/59SJuDf+FY4twNbFjrc/1WV8TBT 013fxSVZyFN8buNw6fQAvpRuSLt8g75N+rby12oAj0odovKwRMrCU8/s11EGzZz/cZoL R0BRAa67ZDscxrrAZ/h7ZqG/bL0FznPS2rKlP+QfAgI7nWJ7dv18jZNAetj8/VKLvv0d cIwH6vTLrN8VG0uA0alGhpTG2qwBsXiw0p7VxX5teWIeajPoedZbYmHs4Lzt+zYyVHIs ZHIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fsWQsMyf; 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 b79-v6si14959389pfm.104.2018.05.21.14.38.51; Mon, 21 May 2018 14:39:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=fsWQsMyf; 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 S1754400AbeEUVZF (ORCPT + 99 others); Mon, 21 May 2018 17:25:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:39846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932302AbeEUVY7 (ORCPT ); Mon, 21 May 2018 17:24:59 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 724902075C; Mon, 21 May 2018 21:24:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526937899; bh=9AWgH+gFyOdIjxETMKz3k1Obt6jgUR4KCDME/Gt6Z/k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fsWQsMyfBM9PII4o4MHb40oPa8BUG12bWDWlltPzIZmcIMCDzf4OXTsvIrwdkI5ZQ TFdXjaO1lJ7fWuiDx6XcoMZuX9uJlRmXCthaaUioTxNG3koEQ5wxH2h5vcCXbhO6VQ q6kV4sBDnjoyHWc8AV/78NWO41/0k8G5FcZj4c40= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Airlie , Alex Deucher , Emil Velikov , David Herrmann , Daniel Vetter , Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , dri-devel@lists.freedesktop.org, Haneen Mohammed Subject: [PATCH 4.16 034/110] drm: Match sysfs name in link removal to link creation Date: Mon, 21 May 2018 23:11:31 +0200 Message-Id: <20180521210506.763714233@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180521210503.823249477@linuxfoundation.org> References: <20180521210503.823249477@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.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Haneen Mohammed commit 7f6df440b8623c441c42d070bf592e2d2c1fa9bb upstream. This patch matches the sysfs name used in the unlinking with the linking function. Otherwise, remove_compat_control_link() fails to remove sysfs created by create_compat_control_link() in drm_dev_register(). Fixes: 6449b088dd51 ("drm: Add fake controlD* symlinks for backwards compat") Cc: Dave Airlie Cc: Alex Deucher Cc: Emil Velikov Cc: David Herrmann Cc: Greg Kroah-Hartman Cc: Daniel Vetter Cc: Gustavo Padovan Cc: Maarten Lankhorst Cc: Sean Paul Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Cc: # v4.10+ Signed-off-by: Haneen Mohammed [seanpaul added Fixes and Cc tags] Signed-off-by: Sean Paul Link: https://patchwork.freedesktop.org/patch/msgid/20180511041542.GA4253@haneen-vb Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -716,7 +716,7 @@ static void remove_compat_control_link(s if (!minor) return; - name = kasprintf(GFP_KERNEL, "controlD%d", minor->index); + name = kasprintf(GFP_KERNEL, "controlD%d", minor->index + 64); if (!name) return;