diff options
author | Hannes Reinecke <hare@suse.de> | 2010-03-09 10:18:48 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-04-11 09:23:27 -0500 |
commit | 36dd288f0f930c154ec6a4d73a6a35f3079418c6 (patch) | |
tree | 63fb1e1ec6716561051a2da94479904ffaeac016 /drivers/scsi/mpt2sas/mpt2sas_base.c | |
parent | bb789d01620e5d36081b22edb6fb71cf55ff043c (diff) | |
download | blackbird-obmc-linux-36dd288f0f930c154ec6a4d73a6a35f3079418c6.tar.gz blackbird-obmc-linux-36dd288f0f930c154ec6a4d73a6a35f3079418c6.zip |
[SCSI] scsi_transport_fc: Protect against overflow in dev_loss_tmo
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>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_base.c')
0 files changed, 0 insertions, 0 deletions