Root/package/hotplug2/patches/130-cancel_download_fix.patch

1--- a/rules/command.c
2+++ b/rules/command.c
3@@ -385,13 +385,13 @@ RULES_COMMAND_F(cmd_firmware) {
4 
5     infp = fopen(firmware_path, "r");
6     if (infp == NULL) {
7- echo_to_file(sysfs_path_loading, "0\n", 2);
8+ echo_to_file(sysfs_path_loading, "-1\n", 2);
9         return -1;
10     }
11     outfp = fopen(sysfs_path_data, "w");
12     if (outfp == NULL) {
13         fclose(infp);
14- echo_to_file(sysfs_path_loading, "0\n", 2);
15+ echo_to_file(sysfs_path_loading, "-1\n", 2);
16         return -1;
17     }
18 
19

Archive Download this file



interactive