On a Getac A790 computer with CentOS 5.5 i686, pressing "Fn+F6" or "Fn+F7" buttons (brightness) result in a kernel panic in "acpi_video_device_notify" in drivers/acpi/video.c<br />
<br />
This problem is due to a missing check in "acpi_video_device_notify" function.<br />
<br />
Here the patch to fix it:<br />
<br />
[code]<br />
diff -ru kernel-2.6.18/linux-2.6.18.i686/drivers/acpi-old/video.c kernel-2.6.18/linux-2.6.18.i686/drivers/acpi/video.c<br />
--- acpi-old/video.c 2013-04-25 02:00:38.000000000 +0200<br />
+++ acpi/video.c 2013-04-25 01:55:06.000000000 +0200<br />
@@ -1759,7 +1759,7 @@<br />
struct input_dev *input;<br />
int keycode;<br />
<br />
- if (!video_device)<br />
+ if (!video_device |!video_device->brightness)<br />
return;<br />
<br />
device = video_device->dev;<br />
[/code]
↧