Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Sep 2010 08:18:20 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r212641 - stable/8/sys/dev/acpi_support
Message-ID:  <201009150818.o8F8IKTB026771@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Wed Sep 15 08:18:20 2010
New Revision: 212641
URL: http://svn.freebsd.org/changeset/base/212641

Log:
  MFC r209055: Fix a possible dereference of null pointer.
  
  Original commit by jkim.

Modified:
  stable/8/sys/dev/acpi_support/acpi_hp.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/acpi_support/acpi_hp.c
==============================================================================
--- stable/8/sys/dev/acpi_support/acpi_hp.c	Wed Sep 15 08:07:58 2010	(r212640)
+++ stable/8/sys/dev/acpi_support/acpi_hp.c	Wed Sep 15 08:18:20 2010	(r212641)
@@ -905,7 +905,7 @@ acpi_hp_get_cmi_block(device_t wmi_dev, 
 		return (-EINVAL);
 	}
 	obj = out.Pointer;
-	if (!obj && obj->Type != ACPI_TYPE_PACKAGE) {
+	if (!obj || obj->Type != ACPI_TYPE_PACKAGE) {
 		acpi_hp_free_buffer(&out);
 		return (-EINVAL);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009150818.o8F8IKTB026771>