diff options
-rw-r--r-- | drivers/scsi/csiostor/csio_hw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/csiostor/csio_hw.c b/drivers/scsi/csiostor/csio_hw.c index 622bdabc8894..dab195f04da7 100644 --- a/drivers/scsi/csiostor/csio_hw.c +++ b/drivers/scsi/csiostor/csio_hw.c | |||
@@ -1769,7 +1769,6 @@ csio_hw_use_fwconfig(struct csio_hw *hw, int reset, u32 *fw_cfg_param) | |||
1769 | goto bye; | 1769 | goto bye; |
1770 | } | 1770 | } |
1771 | 1771 | ||
1772 | mempool_free(mbp, hw->mb_mempool); | ||
1773 | if (finicsum != cfcsum) { | 1772 | if (finicsum != cfcsum) { |
1774 | csio_warn(hw, | 1773 | csio_warn(hw, |
1775 | "Config File checksum mismatch: csum=%#x, computed=%#x\n", | 1774 | "Config File checksum mismatch: csum=%#x, computed=%#x\n", |
@@ -1780,6 +1779,10 @@ csio_hw_use_fwconfig(struct csio_hw *hw, int reset, u32 *fw_cfg_param) | |||
1780 | rv = csio_hw_validate_caps(hw, mbp); | 1779 | rv = csio_hw_validate_caps(hw, mbp); |
1781 | if (rv != 0) | 1780 | if (rv != 0) |
1782 | goto bye; | 1781 | goto bye; |
1782 | |||
1783 | mempool_free(mbp, hw->mb_mempool); | ||
1784 | mbp = NULL; | ||
1785 | |||
1783 | /* | 1786 | /* |
1784 | * Note that we're operating with parameters | 1787 | * Note that we're operating with parameters |
1785 | * not supplied by the driver, rather than from hard-wired | 1788 | * not supplied by the driver, rather than from hard-wired |