aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/probe_roms.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2012-06-22 11:31:14 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-07 08:27:27 -0700
commit42cc576bf229579bea30acb0a2e41e44c77a2901 (patch)
tree068500dbc3e82243270f397e3025f5d07d3111ed /drivers/scsi/isci/probe_roms.c
parent738589592a04180e39b6fb5fe8205d85b7dc69f6 (diff)
downloadkernel_samsung_smdk4412-42cc576bf229579bea30acb0a2e41e44c77a2901.zip
kernel_samsung_smdk4412-42cc576bf229579bea30acb0a2e41e44c77a2901.tar.gz
kernel_samsung_smdk4412-42cc576bf229579bea30acb0a2e41e44c77a2901.tar.bz2
isci: fix isci_pci_probe() generates warning on efi failure path
commit 6d70a74ffd616073a68ae0974d98819bfa8e6da6 upstream. 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. Reported-by: Don Morris <don.morris@hp.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/isci/probe_roms.c')
-rw-r--r--drivers/scsi/isci/probe_roms.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/isci/probe_roms.c b/drivers/scsi/isci/probe_roms.c
index b5f4341..7cd637d 100644
--- a/drivers/scsi/isci/probe_roms.c
+++ b/drivers/scsi/isci/probe_roms.c
@@ -104,7 +104,6 @@ struct isci_orom *isci_request_oprom(struct pci_dev *pdev)
if (i >= len) {
dev_err(&pdev->dev, "oprom parse error\n");
- devm_kfree(&pdev->dev, rom);
rom = NULL;
}
pci_unmap_biosrom(oprom);