[SCSI] scsi_transport_fc: Protect against overflow in dev_loss_tmo
authorHannes Reinecke <hare@suse.de>
Tue, 9 Mar 2010 09:18:48 +0000 (10:18 +0100)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:23:27 +0000 (09:23 -0500)
The rport structure defines dev_loss_tmo as u32, which is
later multiplied with HZ to get the actual timeout value.
This might overflow for large dev_loss_tmo values. So we
should be better using u64 as intermediate variables here
to protect against overflow.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found