linux/drivers/scsi/mpt2sas
Roland Dreier 2f73b9a896 [SCSI] mpt2sas: Fix possible integer truncation of cpu_count
When computing reply_queue_count (the number of MSI-X vectors to use),
the driver does

	ioc->reply_queue_count = min_t(u8, ioc->cpu_count,
	    ioc->msix_vector_count);

However, on a big machine, ioc->cpu_count could be outside the range
that fits in a u8; eg a system with 256 CPUs will end up
reply_queue_count set to 0.

Fix this by calculating the minimum as ints and then letting the
assignment to reply_queue_count handle integer demotion.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Acked-by: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-12-15 10:57:40 +04:00
..
mpi [SCSI] mpt2sas: MPI next revision header update 2011-12-15 10:57:38 +04:00
Kconfig
Makefile
mpt2sas_base.c [SCSI] mpt2sas: Fix possible integer truncation of cpu_count 2011-12-15 10:57:40 +04:00
mpt2sas_base.h [SCSI] mpt2sas : Bump driver vesion to 12.100.00.00 2011-12-15 10:57:39 +04:00
mpt2sas_config.c [SCSI] mpt2sas: Fix for Panic when inactive volume is tried deleting 2011-10-30 12:56:55 +04:00
mpt2sas_ctl.c [SCSI] mpt2sas: Rearrange the the code so that the completion queues are initialized prior to sending the request to controller firmware 2011-12-15 10:57:32 +04:00
mpt2sas_ctl.h [SCSI] mpt2sas : WarpDrive New product SSS6200 support added 2011-05-01 10:36:54 -05:00
mpt2sas_debug.h [SCSI] mpt2sas: Fixed Big Indian Issues on 32 bit PPC 2011-06-29 16:07:00 -05:00
mpt2sas_scsih.c [SCSI] mpt2sas : Fix for memory allocation error for large host credits 2011-12-15 10:57:39 +04:00
mpt2sas_transport.c [SCSI] mpt2sas: Rearrange the the code so that the completion queues are initialized prior to sending the request to controller firmware 2011-12-15 10:57:32 +04:00