Merge "firmware_class: Avoid memory leak when FW_OPT_NOCACHE is set"
This commit is contained in:
commit
4af98252af
1 changed files with 1 additions and 0 deletions
|
@ -295,6 +295,7 @@ static void fw_free_buf(struct firmware_buf *buf)
|
|||
{
|
||||
struct firmware_cache *fwc = buf->fwc;
|
||||
if (!fwc) {
|
||||
kfree_const(buf->fw_id);
|
||||
kfree(buf);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue