RE: Oops in ACPI with git latest

From: James Bottomley
Date: Thu Oct 23 2008 - 21:27:36 EST


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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/