From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: RE: Oops in ACPI with git latest Date: Thu, 23 Oct 2008 20:27:22 -0500 Message-ID: <1224811642.3330.57.camel@localhost.localdomain> References: <1224791103.3330.37.camel@localhost.localdomain> <200810232242.33480.rjw@sisk.pl> <4911F71203A09E4D9981D27F9D830858033D1CC9@orsmsx503.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from accolon.hansenpartnership.com ([76.243.235.52]:39647 "EHLO accolon.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751597AbYJXB1Z (ORCPT ); Thu, 23 Oct 2008 21:27:25 -0400 In-Reply-To: <4911F71203A09E4D9981D27F9D830858033D1CC9@orsmsx503.amr.corp.intel.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Moore, Robert" Cc: "Rafael J. Wysocki" , "linux-acpi@vger.kernel.org" , linux-kernel , Jesse Barnes , Len Brown On Thu, 2008-10-23 at 15:34 -0700, Moore, Robert wrote: > + if (!output.pointer) > + return AE_NULL_OBJECT; > + > > This probably won't work. acpi_evaluate_object currently doesn't touch the pointer parameter if there is no return value, it only sets the length to zero. Actually, it does. > So, you might try this: > > + if (!output.length) > + return AE_NULL_OBJECT; > + This also works. James