[<prev] [next>] [day] [month] [year] [list]
Message-ID: <05B550FD4BD2014E841D83547B62600802AA650C@bgsmsx411.gar.corp.intel.com>
Date: Fri, 15 Feb 2008 10:54:44 +0530
From: "Thomas, Sujith" <sujith.thomas@...el.com>
To: "Andrew Morton" <akpm@...ux-foundation.org>
Cc: <lenb@...nel.org>, <mingo@...e.hu>, <linux-acpi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
<linux-pm@...ts.linux-foundation.org>,
"Zhang, Rui" <rui.zhang@...el.com>
Subject: [patch 5/6] ACPI video: check for error in thermal_cooling_device_register call
From: Thomas Sujith <sujith.thomas@...el.com>
Need to check whetherthermal_cooling_device_register
returned ERROR or not.
Signed-off-by: Thomas Sujith <sujith.thomas@...el.com>
---
drivers/acpi/video.c | 3 +++
1 files changed, 3 insertions(+)
Index: linux-2.6.24/drivers/acpi/video.c
===================================================================
--- linux-2.6.24.orig/drivers/acpi/video.c
+++ linux-2.6.24/drivers/acpi/video.c
@@ -731,6 +731,9 @@ static void acpi_video_device_find_cap(s
device->cdev = thermal_cooling_device_register("LCD",
device->dev,
&video_cooling_ops);
+ if (IS_ERR(device->cdev))
+ return;
+
if (device->cdev) {
printk(KERN_INFO PREFIX
"%s is registered as
cooling_device%d\n",
Download attachment "[patch 5 of 6] ACPI video - check for error in cooling_device_register" of type "application/octet-stream" (743 bytes)
Powered by blists - more mailing lists