mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-11 13:22:33 +00:00
wifi: fix double free during FW loading
The commit that added firmware loading via the VFS (see #4861) introduces a double-free bug where the memory that contains the image is freed twice, once from the callback and once from the work function. As alle examined drivers call 'release_firmware' from the callback function themselves, remove the erroneous 'kfree' call from the work function. Issue #5264.
This commit is contained in:
parent
572d406d66
commit
2b3a2b875b
@ -143,7 +143,6 @@ static void request_firmware_work_func(struct work_struct *work)
|
||||
fw_work->cont(fw, fw_work->context);
|
||||
|
||||
kfree(fw_work);
|
||||
kfree(fw);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user