]> git.pld-linux.org Git - packages/kernel.git/blob - 2.6.8.1-sws2-segfault-fix.patch
- obsolete
[packages/kernel.git] / 2.6.8.1-sws2-segfault-fix.patch
1 diff -ruN 999-old/kernel/power/suspend.c 999-new/kernel/power/suspend.c
2 --- 999-old/kernel/power/suspend.c      2004-09-28 08:21:43.000000000 +1000
3 +++ 999-new/kernel/power/suspend.c      2004-09-28 08:21:33.000000000 +1000
4 @@ -325,10 +325,11 @@
5  
6         /* Now check for graphics class devices, so we can keep the display on while suspending */
7         class = class_find("graphics");
8 -       if (class)
9 +       if (class) {
10                 list_for_each_entry(class_dev, &class->children, node)
11                         device_switch_trees(class_dev->dev, suspend_device_tree);
12 -       class_put(class);
13 +               class_put(class);
14 +       }
15         return 0;
16  }
This page took 0.029987 seconds and 3 git commands to generate.