Cliff Zhao
f66b57318b
- Add plymouth-renderers-Do-not-assume-all-keyboards-have-LEDs.patch: Plymouth does not recognize keyboards without LEDs. This leads to a NULL-pointer deref in the input code. Fixed by this patch. The change is commit 709f21e8 ("renderers: Do not assume all keyboards have LEDs") in the upstrema tree. (bsc#1233532) OBS-URL: https://build.opensuse.org/request/show/1226800 OBS-URL: https://build.opensuse.org/package/show/Base:System/plymouth?expand=0&rev=385
28 lines
979 B
Diff
28 lines
979 B
Diff
diff -Nura plymouth-22.02.122+180.b1d5aa9/src/libply-splash-core/ply-keyboard.c plymouth-22.02.122+180.b1d5aa9_new/src/libply-splash-core/ply-keyboard.c
|
|
--- plymouth-22.02.122+180.b1d5aa9/src/libply-splash-core/ply-keyboard.c 2023-06-08 10:49:58.000000000 +0800
|
|
+++ plymouth-22.02.122+180.b1d5aa9_new/src/libply-splash-core/ply-keyboard.c 2023-07-12 22:52:25.011378645 +0800
|
|
@@ -522,6 +522,8 @@
|
|
|
|
assert (keyboard != NULL);
|
|
|
|
+ if (ply_list_get_length(keyboard->keyboard_input_handler_list))
|
|
+ {
|
|
for (node = ply_list_get_first_node (keyboard->keyboard_input_handler_list);
|
|
node; node = ply_list_get_next_node (keyboard->keyboard_input_handler_list, node)) {
|
|
ply_keyboard_closure_t *closure = ply_list_node_get_data (node);
|
|
@@ -531,6 +533,7 @@
|
|
return;
|
|
}
|
|
}
|
|
+ }
|
|
}
|
|
|
|
void
|
|
@@ -666,4 +669,4 @@
|
|
}
|
|
|
|
return NULL;
|
|
-}
|
|
\ 文件尾没有换行符
|
|
+}
|