loader: reset module type search after unload
file_load() is using local static variable to keep track of successfully used load type, however, if the loaded setup is dropped with unload command, we should also reset the module tracking and the next loading should start from whole list again.
The issue became apparent with multiboot2 work, if the previously loaded kernel was MB1, and the load was dropped, the next load was also done as MB1, and MB2 check was skipped.
Updated by Electric Monk about 3 years ago
- % Done changed from 90 to 100
- Status changed from In Progress to Closed
commit 8665881c0dfc6f05581d92376fcc3584444a9c5f Author: Toomas Soome <email@example.com> Date: 2017-03-21T16:06:00.000Z 7958 loader: reset module type search after unload Reviewed by: Marcel Telka <firstname.lastname@example.org> Reviewed by: Robert Mustacchi <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>