James Smart 845d9e8df2 scsi: lpfc: Fix used-RPI accounting problem.
With 255 vports created a link trasition can casue a crash.

When going through discovery after a link bounce the driver is using
rpis before the cmd FCOE_POST_HDR_TEMPLATES completes. By doing that the
next rpi bumps the rpi range out of the boundary.

The fix it to increment the next_rpi only when the
FCOE_POST_HDR_TEMPLATE succeeds.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-05-16 21:17:28 -04:00
..
2017-05-05 18:49:20 -07:00
2017-05-05 19:33:07 -07:00
2017-05-04 19:15:35 -07:00
2017-05-02 17:34:32 -07:00
2017-05-05 18:49:20 -07:00
2017-05-05 12:11:37 -07:00
2017-05-04 19:15:35 -07:00
2017-05-05 17:34:57 -07:00
2017-05-04 19:15:35 -07:00
2017-04-30 11:45:31 -07:00
2017-05-04 19:15:35 -07:00
2017-05-05 18:16:23 -07:00
2017-05-04 19:15:35 -07:00
2017-05-04 19:15:35 -07:00
2017-05-05 19:33:07 -07:00
2017-05-05 18:16:23 -07:00
2017-05-03 12:16:25 -07:00
2017-04-27 11:54:49 +01:00
2017-05-05 11:36:44 -07:00
2017-05-02 17:34:32 -07:00
2017-04-17 00:42:22 +02:00
2017-04-20 09:54:24 +02:00
2017-05-05 18:49:20 -07:00
2017-05-05 19:33:07 -07:00
2017-05-03 11:44:24 -07:00
2017-05-04 19:15:35 -07:00
2017-05-01 14:13:28 -07:00
2017-05-04 19:15:35 -07:00
2017-05-05 18:16:23 -07:00
2017-05-03 12:16:25 -07:00
2017-05-05 19:33:07 -07:00
2017-05-05 19:33:07 -07:00
2017-05-05 11:36:44 -07:00
2017-05-03 12:11:44 -07:00
2017-05-05 18:49:20 -07:00