Skip to content
Commit 6d70a74f authored by Dan Williams's avatar Dan Williams
Browse files

isci: fix isci_pci_probe() generates warning on efi failure path



The oem parameter image embedded in the efi variable is at an offset
from the start of the variable.  However, in the failure path we try to
free the 'orom' pointer which is only valid when the paramaters are
being read from the legacy option-rom space.

Since failure to load the oem parameters is unlikely and we keep the
memory around in the success case just defer all de-allocation to devm.

Cc: <stable@vger.kernel.org>
Reported-by: default avatarDon Morris <don.morris@hp.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent f8f5701b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment