scsi: qedf: Fix a return value in case of error in 'qedf_alloc_global_queues'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 11 Jun 2017 06:16:02 +0000 (08:16 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 01:20:40 +0000 (21:20 -0400)
commit3a240b21b5ccb77fcbece7a617f333cd31097776
treef29ba3e21cbe7b1508c22565e8b76fa30c3b0cea
parent249cf320bd5dd3490252cb9f3cdef41f7d1caacc
scsi: qedf: Fix a return value in case of error in 'qedf_alloc_global_queues'

We should return -ENOMEM in case of memory allocation error, as done
elsewhere in this function.

[mkp: fixed typo]

Fixes: 61d8658b4a435 ("scsi: qedf: Add QLogic FastLinQ offload FCoE driver framework.")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_main.c