loader: mod_loadkld() error: we previously assumed 'last_file' could be null
smatch error. In edge case, it is possible we will dereference NULL pointer.
The problem there is about recovery when we fail to read the file into load area; to fix, I figured it is better to record the last load address and implement function to remove the file from the list.
Testing done: build/install/boot, the loading and boot is behaving as expected.
Updated by Electric Monk about 1 year ago
- % Done changed from 90 to 100
- Status changed from In Progress to Closed
commit a8412dc108558a7a3635b7ab4f3b1b743bdff9e8 Author: Toomas Soome <firstname.lastname@example.org> Date: 2019-06-18T17:40:59.000Z 11074 loader: mod_loadkld() error: we previously assumed 'last_file' could be null Reviewed by: John Levon <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>