Commits

braindamaged committed fd2f7c6

udev: firmware - disable firmware loading when firmware file is 0 byte

If firmware file is not found in the file system, udev
terminates firmware loading. This is not the case if
firmware file exists in the file system but doesn't have
any data in it.

Comments (0)

Files changed (1)

src/udev-builtin-firmware.c

         }
 
         if (stat(fwpath, &statbuf) < 0 || statbuf.st_size == 0) {
+                set_loading(udev, loadpath, "-1");
                 rc = EXIT_FAILURE;
                 goto exit;
         }