James Smart aa6ff30918 scsi: lpfc: Fix BFS crash with DIX enabled
Crashes in scsi_queue_rq or in dma_unmap_direct_sg during BFS when lpfc has
lpfc_enable_bg=1.

lpfc is setting DIX and prot sg after scsi_add_host_with_dma() has been
called. The scsi_host_set_prot() and scsi_host_set_guard() routines need to
be called before scsi_add_host_with_dma().

Revise the calling sequence to set the protection/guard data before calling
scsi_add_host_with_dma().

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-06-18 19:46:22 -04:00
..
2019-05-08 10:12:46 -07:00
2018-12-18 23:19:21 -05:00
2019-05-08 10:12:46 -07:00
2019-05-08 10:12:46 -07:00
2019-05-08 10:12:46 -07:00
2019-03-09 16:53:47 -08:00
2019-05-21 06:16:22 -04:00
2019-05-21 06:16:22 -04:00
2019-05-08 10:12:46 -07:00
2019-05-08 10:12:46 -07:00
2019-05-08 10:12:46 -07:00
2019-03-02 11:39:54 -08:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:19:21 -05:00
2018-06-19 22:02:25 -04:00
2018-12-18 23:19:21 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:58:35 -05:00
2018-12-18 23:19:21 -05:00
2019-06-18 19:46:18 -04:00
2019-06-18 19:46:18 -04:00
2019-06-18 19:46:18 -04:00
2018-12-18 23:19:21 -05:00
2018-11-06 21:31:28 -05:00
2019-05-21 06:16:22 -04:00
2018-12-18 23:19:21 -05:00
2018-12-28 14:48:06 -08:00
2019-03-09 16:53:47 -08:00
2018-06-19 22:02:25 -04:00
2019-06-18 19:46:17 -04:00
2019-02-12 22:33:00 -05:00
2019-05-21 06:16:23 -04:00
2019-05-21 06:16:23 -04:00
2018-12-18 23:19:21 -05:00
2019-05-21 06:16:23 -04:00
2019-06-18 19:46:18 -04:00
2018-12-18 23:19:21 -05:00
2019-05-08 10:12:46 -07:00
2018-12-28 14:48:06 -08:00