From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:39107 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751674AbcBNWSZ (ORCPT ); Sun, 14 Feb 2016 17:18:25 -0500 Subject: Patch "drm/nouveau/pmu: do not assume a PMU is present" has been added to the 4.3-stable tree To: acourbot@nvidia.com, bskeggs@redhat.com, gregkh@linuxfoundation.org Cc: , From: Date: Sun, 14 Feb 2016 14:18:23 -0800 Message-ID: <1455488303150100@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled drm/nouveau/pmu: do not assume a PMU is present to the 4.3-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-nouveau-pmu-do-not-assume-a-pmu-is-present.patch and it can be found in the queue-4.3 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 579b7c58215329803ce184704463de09f0f310ac Mon Sep 17 00:00:00 2001 From: Alexandre Courbot Date: Thu, 3 Sep 2015 17:39:52 +0900 Subject: drm/nouveau/pmu: do not assume a PMU is present From: Alexandre Courbot commit 579b7c58215329803ce184704463de09f0f310ac upstream. Some devices may not have a PMU. Avoid a NULL pointer dereference in such cases by checking whether the pointer given to nvkm_pmu_pgob() is valid. Signed-off-by: Alexandre Courbot Signed-off-by: Ben Skeggs Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/nvkm/subdev/pmu/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/base.c @@ -28,7 +28,7 @@ void nvkm_pmu_pgob(struct nvkm_pmu *pmu, bool enable) { - if (pmu->func->pgob) + if (pmu && pmu->func->pgob) pmu->func->pgob(pmu, enable); } Patches currently in stable-queue which might be from acourbot@nvidia.com are queue-4.3/drm-nouveau-pmu-do-not-assume-a-pmu-is-present.patch