Ewan D. Milne 0840feb396 scsi: lpfc: do not set queue->page_count to 0 if pc_sli4_params.wqpcnt is invalid
commit 4e87eb2f46ea547d12a276b2e696ab934d16cfb6 upstream.

Certain older adapters such as the OneConnect OCe10100 may not have a valid
wqpcnt value.  In this case, do not set queue->page_count to 0 in
lpfc_sli4_queue_alloc() as this will prevent the driver from initializing.

Fixes: 895427bd01 ("scsi: lpfc: NVME Initiator: Base modifications")
Cc: stable@vger.kernel.org # 4.11+
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Tested-by:   Laurence Oberman <loberman@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13 10:01:01 +01:00
..
2018-12-08 13:03:35 +01:00
2017-12-25 14:26:25 +01:00
2018-01-02 20:31:05 +01:00
2017-08-25 17:21:11 -04:00
2017-08-24 22:29:06 -04:00
2018-08-15 18:12:47 +02:00
2017-08-25 17:21:10 -04:00
2017-09-13 10:47:14 -07:00
2017-08-25 17:21:11 -04:00
2017-04-13 13:58:20 -04:00
2017-09-07 12:12:43 -07:00
2017-08-08 11:49:51 -04:00
2017-04-26 18:32:29 -04:00