aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2009-09-29 00:17:56 +0000
committerTejun Heo <[email protected]>2009-09-29 00:17:56 +0000
commitffe0d5a575459ffe664b0762130b557f826fcace (patch)
treeaf581934a717c510a2c6897ca4ed7fcefd440578 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parentLinux 2.6.32-rc1 (diff)
downloadkernel-ffe0d5a575459ffe664b0762130b557f826fcace.tar.gz
kernel-ffe0d5a575459ffe664b0762130b557f826fcace.zip
percpu: fix unit_map[] verification in pcpu_setup_first_chunk()
pcpu_setup_first_chunk() incorrectly used NR_CPUS as the impossible unit number while unit number can equal and go over NR_CPUS with sparse unit map. This triggers BUG_ON() spuriously on machines which have non-power-of-two number of cpus. Use UINT_MAX instead. Signed-off-by: Tejun Heo <[email protected]> Reported-and-tested-by: Tony Vroon <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions