Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 19e9054b authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

firmware: Initialize firmware_buf list when we create a new firmware buf



In the case where we use FW_OPT_NOCACHE, the firmware_buf list will have
NULL entries resulting in NULL pointer dereferences when we enter an
error condition.

[<ffffff8ad75fe59c>] list_del+0x14
[<ffffff8ad78efe6c>] __fw_free_buf+0x38
[<ffffff8ad78effa8>] fw_free_buf+0x5c
[<ffffff8ad78f0024>] release_firmware+0x70
[<ffffff8ad78f0c80>] _request_firmware+0x60
[<ffffff8ad78f18e0>] request_firmware_into_buf+0x4c

Change-Id: I0ca6c44c19317ccb55aa2ec7259402a67a90ab79
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
Signed-off-by: default avatarRishabh Bhatnagar <rishabhb@codeaurora.org>
parent cbfb9620
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment