]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/acpi/video.c
Pull video into release branch
[linux-2.6.git] / drivers / acpi / video.c
index fcefcb104b31aa88b6197237325661c729fc6e77..86531ab4ee5517dcf86676641fcae415cad4f980 100644 (file)
@@ -323,7 +323,7 @@ acpi_video_device_lcd_query_levels(struct acpi_video_device *device,
        if (!ACPI_SUCCESS(status))
                return_VALUE(status);
        obj = (union acpi_object *)buffer.pointer;
-       if (!obj && (obj->type != ACPI_TYPE_PACKAGE)) {
+       if (!obj || (obj->type != ACPI_TYPE_PACKAGE)) {
                ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid _BCL data\n"));
                status = -EFAULT;
                goto err;