qla2x00t-32gbit: Only free 'entries' after its last use

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8153 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-04-05 01:04:14 +00:00
parent 0fe36f31ac
commit 2b09d01896

View File

@@ -3550,10 +3550,6 @@ msix_failed:
&desc);
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
kfree(entries);
#endif
if (ret < 0) {
ql_log(ql_log_fatal, vha, 0x00c7,
"MSI-X: Failed to enable support, "
@@ -3680,6 +3676,9 @@ msix_register_fail:
ha->mqiobase, ha->max_rsp_queues, ha->max_req_queues);
msix_out:
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
kfree(entries);
#endif
return ret;
}