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 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 8665881c0dfc6f05581d92376fcc3584444a9c5f Author: Toomas Soome <firstname.lastname@example.org> Date: 2017-03-21T16:06:00.000Z 7958 loader: reset module type search after unload Reviewed by: Marcel Telka <email@example.com> Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>