mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lv Zheng <lv.zheng@intel.com>
To: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	Len Brown <len.brown@intel.com>
Cc: Lv Zheng <lv.zheng@intel.com>, Lv Zheng <zetalog@gmail.com>,
	<linux-kernel@vger.kernel.org>,
	linux-acpi@vger.kernel.org,
	"David E. Box" <david.e.box@linux.intel.com>,
	Bob Moore <robert.moore@intel.com>
Subject: [PATCH 05/10] ACPICA: Events: Cleanup of resetting the GPE handler to NULL before removing.
Date: Thu,  5 Feb 2015 15:20:14 +0800	[thread overview]
Message-ID: <03498d3612bdc7d67feb473f89de2beb88f65944.1423119574.git.lv.zheng@intel.com> (raw)
In-Reply-To: <cover.1423119574.git.lv.zheng@intel.com>

ACPICA commit b2b18bb38045404e253f10787b8a4ae6e94cdee6

This patch prevents acpi_remove_gpe_handler() from leaking the stale
gpe_event_info->Dispatch.Handler to the caller to avoid possible NULL pointer
references. Lv Zheng.

Link: https://github.com/acpica/acpica/commit/b2b18bb3
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
---
 drivers/acpi/acpica/evxface.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/acpi/acpica/evxface.c b/drivers/acpi/acpica/evxface.c
index 55a58f3..b6b0c23 100644
--- a/drivers/acpi/acpica/evxface.c
+++ b/drivers/acpi/acpica/evxface.c
@@ -896,6 +896,7 @@ acpi_remove_gpe_handler(acpi_handle gpe_device,
 	/* Remove the handler */
 
 	handler = gpe_event_info->dispatch.handler;
+	gpe_event_info->dispatch.handler = NULL;
 
 	/* Restore Method node (if any), set dispatch flags */
 
-- 
1.7.10


  parent reply	other threads:[~2015-02-05  7:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-05  7:19 [PATCH 00/10] ACPICA: 20150204 Release Lv Zheng
2015-02-05  7:19 ` [PATCH 01/10] ACPICA: Events: Back port "ACPICA: Save current masks of enabled GPEs after enable register writes" Lv Zheng
2015-02-05  7:19 ` [PATCH 02/10] ACPICA: Events: Remove duplicated sanity check in acpi_ev_enable_gpe() Lv Zheng
2015-02-05  7:20 ` [PATCH 03/10] ACPICA: Events: Remove acpi_ev_valid_gpe_event() due to current restriction Lv Zheng
2015-02-05  7:20 ` [PATCH 04/10] ACPICA: Events: Fix uninitialized variable Lv Zheng
2015-02-05  7:20 ` Lv Zheng [this message]
2015-02-05  7:20 ` [PATCH 06/10] ACPICA: Events: Cleanup to move acpi_gbl_global_event_handler invocation out of acpi_ev_gpe_dispatch() Lv Zheng
2015-02-05  7:20 ` [PATCH 07/10] ACPICA: Events: Cleanup GPE dispatcher type obtaining code Lv Zheng
2015-02-05  7:20 ` [PATCH 08/10] ACPICA: Hardware: Cast GPE enable_mask before storing Lv Zheng
2015-02-05  7:20 ` [PATCH 09/10] ACPICA: Update Copyright headers to 2015 Lv Zheng
2015-02-05  7:20 ` [PATCH 10/10] ACPICA: Update version to 20150204 Lv Zheng
2015-02-05 15:18 ` [PATCH 00/10] ACPICA: 20150204 Release Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=03498d3612bdc7d67feb473f89de2beb88f65944.1423119574.git.lv.zheng@intel.com \
    --to=lv.zheng@intel.com \
    --cc=david.e.box@linux.intel.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=robert.moore@intel.com \
    --cc=zetalog@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®