mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 13:16:34 +00:00
Check preprocesor definitions when releasing firmware.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@395 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -945,7 +945,7 @@ bad:
|
||||
isp_kfree(isp->isp_osinfo.storep, isp->isp_osinfo.storep_amt);
|
||||
isp->isp_osinfo.storep = NULL;
|
||||
}
|
||||
#ifdef CONFIG_FW_LOADER
|
||||
#if !defined(DISABLE_FW_LOADER) && (defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE))
|
||||
if (isp->isp_osinfo.fwp) {
|
||||
release_firmware(isp->isp_osinfo.fwp);
|
||||
isp->isp_osinfo.fwp = NULL;
|
||||
@@ -3468,7 +3468,7 @@ isplinux_pci_remove(struct pci_dev *pdev)
|
||||
isp_deinit_target(isp);
|
||||
#endif
|
||||
scsi_host_put(host);
|
||||
#ifdef CONFIG_FW_LOADER
|
||||
#if !defined(DISABLE_FW_LOADER) && (defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE))
|
||||
if (isp->isp_osinfo.fwp) {
|
||||
release_firmware(isp->isp_osinfo.fwp);
|
||||
isp->isp_osinfo.fwp = NULL;
|
||||
|
||||
Reference in New Issue
Block a user