Ben Hutchings e74e7d9587 scsi: qla2xxx: Fix race condition between iocb timeout and initialisation
qla2x00_init_timer() calls add_timer() on the iocb timeout timer, which
means the timeout function pointer and any data that the function depends on
must be initialised beforehand.

Move this initialisation before each call to qla2x00_init_timer().  In some
cases qla2x00_init_timer() initialises a completion structure needed by the
timeout function, so move the call to add_timer() after that.

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-04-09 21:04:36 -04:00
..
2018-04-06 18:31:06 -07:00
2018-04-06 18:31:06 -07:00
2018-04-05 21:29:35 -07:00
2018-04-05 21:29:35 -07:00
2018-04-04 20:07:20 -07:00
2018-04-06 19:21:41 -07:00
2018-03-27 09:51:22 +02:00
2018-03-19 14:18:22 -05:00
2018-04-05 21:03:42 -07:00
2018-03-28 13:24:56 +02:00
2018-03-27 15:57:19 +02:00
2018-04-04 20:07:20 -07:00
2018-04-05 14:27:02 -07:00
2018-04-04 18:56:27 -07:00
2018-04-07 12:08:19 -07:00
2018-03-19 14:20:24 -05:00
2018-04-07 12:08:19 -07:00
2018-04-05 14:27:02 -07:00
2018-04-06 12:15:41 -07:00
2018-04-05 14:27:02 -07:00
2018-04-05 14:27:02 -07:00
2018-04-04 20:07:20 -07:00
2018-04-06 18:31:06 -07:00
2018-04-04 20:07:20 -07:00
2018-04-07 12:08:19 -07:00
2018-04-05 21:29:35 -07:00
2018-04-05 21:21:08 -07:00
2018-04-05 21:21:08 -07:00
2018-04-05 21:21:08 -07:00
2018-04-05 14:27:02 -07:00
2018-04-05 21:29:35 -07:00
2018-04-03 12:06:21 -07:00
2018-04-05 14:27:02 -07:00
2018-04-06 19:44:27 -07:00
2018-04-06 19:21:41 -07:00
2018-03-29 13:38:10 +03:00